From 8e2cacd746bc05dbe173625beb38d802dd01952d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 4 May 2020 19:19:59 +0200 Subject: [PATCH] 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//template files. --- common/xbps-src/shutils/purge_distfiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/purge_distfiles.sh b/common/xbps-src/shutils/purge_distfiles.sh index e3d577bd624..838ac751684 100644 --- a/common/xbps-src/shutils/purge_distfiles.sh +++ b/common/xbps-src/shutils/purge_distfiles.sh @@ -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