summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index 4d113b4..70f0aaa 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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
+ }
+ }
+ }
}