summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-09 10:10:10 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-09 10:10:10 +0200
commit104ee0a5a3297682de6db8af3a949b9b2e4bd28f (patch)
treef5287b6dc193cf932d59d96745008754b7dfdc3c /bin/pkg
parentc9aafb5328caceb9d0f750425fdb340317922bbd (diff)
pkg check -> pkg refresh, this also obsoletes the pkg eval fiddling
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index bdfb007..ab4c5f9 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -522,10 +522,12 @@ pkg_status () {
}
}
-pkg_check () {
+pkg_refresh () {
check_installed $1
cd $PDIR/$1
+ populate_collected $1
checklinks $CL_OPTIONS
+ triggers+=$1
}
pkg_update () {
@@ -606,7 +608,6 @@ pkg_log () {
case $1 in
add) pkg_add $2 ;;
- check) wrap pkg_check "$2" "Checking" ;;
delete) pkg_remove $2 ;;
info) pkg_info $2 ;;
install) pkg_add $2 ;;
@@ -615,6 +616,7 @@ case $1 in
local-update) pkg_update_local ;;
log) pkg_log $2 ;;
push) wrap pkg_push "$2" "Pushing" ;;
+ refresh) wrap pkg_refresh "$2" "Refreshing" ;;
remote-update) pkg_update_remote ;;
remove) pkg_remove $2 ;;
status) wrap pkg_status "$2" "Checking package status" ;;