summaryrefslogtreecommitdiff
path: root/bin/calculate-dependent-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-23 23:46:02 +0200
committerErich Eckner <git@eckner.net>2017-08-23 23:46:02 +0200
commit1dc32256079a682241c766bede69b28bc4ea789b (patch)
treef68252e0a122d011a38830c0b0fdbe55228b8529 /bin/calculate-dependent-packages
parentd61d40cd14a8aac11748b1df81051ab826e4d77d (diff)
downloadbuilder-1dc32256079a682241c766bede69b28bc4ea789b.tar.xz
bin/calculate-dependent-packages: bugfix
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 < \