diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-30 11:29:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-30 11:29:21 +0200 |
commit | 00f1159d59544f26e9b7a6b863177d40de101641 (patch) | |
tree | df39e403d36d5fbb97c6921cf96fe3869bca81ee /bin | |
parent | d0856a923fd90a06b3883837c0b07864df54064b (diff) |
bin/pkg: Added lst_remove_package to be called from pkg_remove
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -175,6 +175,12 @@ lst_update_package () { vcs_to_lst $1 >> .list } +lst_remove_package () { + cd $PDIR + LIST=$(cat .list | grep -v ^"$1 ") + echo $LIST > .list +} + vcs_upgrade () { [ -d .hg ] && {hg pull --update ; return} [ -d .git ] && {git pull ; return} @@ -362,6 +368,7 @@ pkg_remove () { } exec_hook "$1" "pre-remove" genocide_collected "$1" + lst_remove_package $1 rm -rf $PDIR/$1 info "Package removed.\n" } |