diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-14 19:33:55 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-14 19:33:55 +0200 |
commit | 2e8bb17761e4eabe9750c96f7269551df17ac201 (patch) | |
tree | 294f9de157fbf3953102c9d00a68273cf595e832 /bin/pkg | |
parent | e74104755894804a96712d0e8ccfec119607af22 (diff) |
bin/pkg: *_collected: Also use bin/
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -198,6 +198,13 @@ populate_collected () { } } clear_line + if ([ -d bin ]) { + for i in bin/*(*); { + if ([ ! -e $PDIR/.collected/$i ]) { + ln -s ../../$1/$i $PDIR/.collected/$i + } + } + } } # Remove a packages' files from .collected @@ -223,6 +230,13 @@ genocide_collected () { } } clear_line + if ([ -d bin ]) { + for i in bin/*(*); { + if ([ $(readlink $PDIR/.collected/$i) = "../../$1/$i" ]) { + rm -f $PDIR/.collected/$i + } + } + } } |