diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-24 18:27:16 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-24 18:27:16 +0200 |
commit | 48428b48e7b4cff159b05e42499ea53dc4c8f72b (patch) | |
tree | 73d8c61454fb4762228d128a28b62912e0bada8d | |
parent | eb6eda9ccef4d42a37a86d5039d6a9e371aab4c2 (diff) |
pkg: update_provides: Removed useless "remove" argument
-rwxr-xr-x | bin/pkg | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -443,7 +443,7 @@ function global_hook { genocide_collected $1 checklinks -r list_package_remove $1 - update_provides $1 'remove' + update_provides $1 ;; esac (( $+functions[pkg_hook_$2] )) && pkg_hook_$2 $1 @@ -619,11 +619,8 @@ function genocide_collected { function update_provides { typeset package - [[ -d $PDIR/$1/provides ]] || return - cd $PDIR/$1/provides - for package in *; { + for package in $PDIR/$1/provides/*(N:t); { if [[ -d $PDIR/$package ]] { - [[ $2 = 'remove' ]] && rm -r $package triggers+=$package } } |