diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-05 22:23:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-05 22:23:21 +0200 |
commit | 852fa3f91c6bb57c36c3e2636a1ac0fd800ac1b1 (patch) | |
tree | dbd259721ef67b807c4d8aa265f7a0e2e04708f8 /bin/pkg | |
parent | c6c1a5645643b82b664fc6f2653c28e262e6a09e (diff) |
pkg: Improved overall support for symlinks
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |