summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-30 11:18:53 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-30 11:18:53 +0200
commitd0856a923fd90a06b3883837c0b07864df54064b (patch)
treea1dd2621dc883bcea36ab7108d7616f0ff91fb92
parenta4e75f5a05c287a2d3e5be37bf3a3813e681fa92 (diff)
bin/pkg: Added lst_update_package to be called after installations/updates
-rwxr-xr-xbin/pkg12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 03e25fd..0057bc6 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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
}