diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-30 11:18:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-30 11:18:53 +0200 |
commit | d0856a923fd90a06b3883837c0b07864df54064b (patch) | |
tree | a1dd2621dc883bcea36ab7108d7616f0ff91fb92 /bin | |
parent | a4e75f5a05c287a2d3e5be37bf3a3813e681fa92 (diff) |
bin/pkg: Added lst_update_package to be called after installations/updates
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -144,7 +144,7 @@ lst_incoming () { } vcs_log () { - [ -d .hg ] && {hg log | less ; return} + [ -d .hg ] && {hg glog | less ; return} [ -d .git ] && {git log ; return} } @@ -168,6 +168,13 @@ lst_update_local () { } } +lst_update_package () { + cd $PDIR + LIST=$(cat .list | grep -v ^"$1 ") + echo $LIST > .list + vcs_to_lst $1 >> .list +} + vcs_upgrade () { [ -d .hg ] && {hg pull --update ; return} [ -d .git ] && {git pull ; return} @@ -341,7 +348,7 @@ pkg_add () { cd $PDIR/$1 checklinks $CL_OPTIONS populate_collected "$1" - return 0 + lst_update_package $1 } pkg_remove () { @@ -376,6 +383,7 @@ pkg_upgrade () { exec_hook "$1" "post-update" checklinks $CL_OPTIONS populate_collected "$1" + lst_update_package $1 } else { clear_line } |