common/.../purge_distfiles.sh: fix template scan
To avoid scanning templates multiple times, because symbolic links were included, use find to scan only directories below srcpkgs and collect their srcpkgs/<dir>/template files.
This commit is contained in:
parent
95a781eeac
commit
8e2cacd746
|
@ -13,7 +13,7 @@ purge_distfiles() {
|
|||
# Scan all templates for their current distfiles and checksums (hashes)
|
||||
#
|
||||
declare -A my_hashes
|
||||
templates=(srcpkgs/*/template)
|
||||
templates=($(find srcpkgs -mindepth 1 -maxdepth 1 -type d -printf "srcpkgs/%f/template\n"))
|
||||
max=${#templates[@]}
|
||||
cur=0
|
||||
if [ -z "$max" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user