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:
Jürgen Buchmüller 2020-05-04 19:19:59 +02:00
parent 95a781eeac
commit 8e2cacd746

View file

@ -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