Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/calculate-dependent-packages
diff options
context:
space:
mode:
Diffstat (limited to 'bin/calculate-dependent-packages')
-rwxr-xr-xbin/calculate-dependent-packages4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/calculate-dependent-packages b/bin/calculate-dependent-packages
index 70e244f..1b16a91 100755
--- a/bin/calculate-dependent-packages
+++ b/bin/calculate-dependent-packages
@@ -103,7 +103,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
"${count}" \
"${sf}" >> \
"${tmp_dir}/dependent-count.new"
- find "${tmp_dir}/loops" -maxdepth 1 \
+ find "${tmp_dir}/loops" -type f -maxdepth 1 \
-exec grep -qxF "${sf}" {} \; \
-exec rm {} \;
done < \
@@ -160,7 +160,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
while read -r sf; do
printf '%s %s\n' "${count}" "${sf}" >> \
"${tmp_dir}/dependent-count.new"
- find "${tmp_dir}/loops" -maxdepth 1 -not -name "${loop##*/}" \
+ find "${tmp_dir}/loops" -maxdepth 1 -type f -not -name "${loop##*/}" \
-exec grep -qxF "${sf}" {} \; \
-exec rm {} \;
done < \