purge-distfile: improve template scan speed
This commit is contained in:
parent
b30bb3e8fa
commit
1c4a971d74
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ purge_distfiles() {
|
||||||
fi
|
fi
|
||||||
percent=-1
|
percent=-1
|
||||||
for template in ${templates[@]}; do
|
for template in ${templates[@]}; do
|
||||||
pkg="$(echo "$template" | cut -d / -f 2)"
|
pkg=${template#*/}
|
||||||
|
pkg=${pkg%/*}
|
||||||
if [ ! -L "srcpkgs/$pkg" ]; then
|
if [ ! -L "srcpkgs/$pkg" ]; then
|
||||||
unset checksum
|
unset checksum
|
||||||
source $template 2>/dev/null
|
source $template 2>/dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue