summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-27 20:13:19 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-27 20:13:19 +0200
commit805347c3bf8d7454979b32e710a5c537673b536a (patch)
treedff06c1c45ec3ff47356c03bd3f1792c8141f79f
parent3438163d4ee72b876a06b1ceb967f9f6bd2ee492 (diff)
bin/pkg: Introduced pkg_update to update the package list
-rwxr-xr-xbin/pkg10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index afba103..6b9264e 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -319,6 +319,15 @@ pkg_remove () {
info "Package removed.\n"
}
+pkg_update () {
+ cd $PDIR
+ if ("$PKG_PROTO" = 'ssh') {
+ scp $PKG_ROOT/.links .
+ } elif ("$PKG_PROTO" = 'file') {
+ cp $PKG_ROOT/.links .
+ }
+}
+
pkg_upgrade () {
check_installed "$1"
cd $PDIR/$1
@@ -492,6 +501,7 @@ case "$1" in
log) pkg_log "$2" ;;
remove) pkg_remove "$2" ;;
status) pkg_status_wrapper "$2" ;;
+ update) pkg_update ;;
upgrade) pkg_upgrade_wrapper "$2" ;;
*) die "wait, what?\n" ;;
esac