From 9bfd32c38b6f46140263553cf33c12d3b5fe03ef Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Nov 2017 20:26:38 +0100 Subject: bin/why-dont-you: bugfix for "keep" --- bin/why-dont-you | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/why-dont-you') diff --git a/bin/why-dont-you b/bin/why-dont-you index 25419ff..d1d528a 100755 --- a/bin/why-dont-you +++ b/bin/why-dont-you @@ -233,11 +233,11 @@ case "${action}" in fi - sed "s|^|${pkg} builds |" "${work_dir}/package-infos/${pkg}.${rev}.${mod_rev}.${prepo}.builds" >> \ - "${tmp_dir}/deleted.builds" + sed "s|^|${pkg} builds |" "${work_dir}/package-infos/${pkg}.${rev}.${mod_rev}.${prepo}.builds" done < \ - "${work_dir}/deletion-list" + "${work_dir}/deletion-list" > \ + "${tmp_dir}/deleted.builds" sort -k3,3 "${tmp_dir}/deleted.builds" | \ sponge "${tmp_dir}/deleted.builds" @@ -273,7 +273,7 @@ case "${action}" in fi build_depends=$( - find "${work_dir}/package-infos" -maxdepth 1 -name "${pkg}.*.build-depends" + find "${work_dir}/package-infos" -maxdepth 1 -name "${pkg}.*.build-depends" -exec cat {} \; ) if [ -z "${build_depends}" ]; then printf 'Package "%s" was deleted in the git repositories.\n' "${pkg}" -- cgit v1.2.3-70-g09d2