summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-05 22:23:21 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-05 22:23:21 +0200
commit852fa3f91c6bb57c36c3e2636a1ac0fd800ac1b1 (patch)
treedbd259721ef67b807c4d8aa265f7a0e2e04708f8 /bin/pkg
parentc6c1a5645643b82b664fc6f2653c28e262e6a09e (diff)
pkg: Improved overall support for symlinks
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 21ab1f1..69c5b0b 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -339,7 +339,7 @@ function list_update_local {
typeset i
cd $PDIR
rm -f .list
- for i in *(/); {
+ for i in *(-/); {
(( current++ ))
progress $current $all 'Updating package list' $i
vcs_to_list $i >> .list
@@ -561,7 +561,7 @@ function populate_collected {
say ')'
}
if [[ -d bin ]] {
- for i in bin/*(*); {
+ for i in bin/*(-*); {
if [[ -L $HOME/$i || ! -e $HOME/$i ]] {
if [[ $(readlink $HOME/$i) != "../$1/$i" ]] {
rm -f $HOME/$i
@@ -597,7 +597,7 @@ function genocide_collected {
}
clear_line
if [[ -d bin ]] {
- for i in bin/*(*); {
+ for i in bin/*(-*); {
if [[ $(readlink $HOME/$i) = "../${PDIR//$HOME\/}/$1/$i" ]] {
rm -f $HOME/$i
}
@@ -644,7 +644,7 @@ function wrap {
cd $PDIR
[[ -n $progress ]] && all=$(wc -l < $PDIR/.list)
[[ -n $progress ]] && current=0
- for i in *(/); {
+ for i in *(-/); {
(( current++ ))
[[ -n $progress ]] && progress $current $all $progress $i
$function $i