diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-27 20:13:19 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-27 20:13:19 +0200 |
commit | 805347c3bf8d7454979b32e710a5c537673b536a (patch) | |
tree | dff06c1c45ec3ff47356c03bd3f1792c8141f79f | |
parent | 3438163d4ee72b876a06b1ceb967f9f6bd2ee492 (diff) |
bin/pkg: Introduced pkg_update to update the package list
-rwxr-xr-x | bin/pkg | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |