summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-11-08 11:24:35 -0800
committerZac Medico <zmedico@gentoo.org>2011-11-08 11:24:35 -0800
commit46f565d32b46b073103c9ed045326ecd9d3f2859 (patch)
tree4ff6d6c2f14e6c66f1b1338b8dda25b25cef83ac
parent450711a0d78a8ccc4d837cb39b85c2871d17ccf2 (diff)
downloadportage-46f565d32b46b073103c9ed045326ecd9d3f2859.tar.gz
portage-46f565d32b46b073103c9ed045326ecd9d3f2859.tar.bz2
portage-46f565d32b46b073103c9ed045326ecd9d3f2859.zip
ecompressdir: remove 'continue' from loop logic
Hopefully this helps us avoid errors in loop logic like bug #389047.
-rwxr-xr-xbin/ebuild-helpers/ecompressdir9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/ebuild-helpers/ecompressdir b/bin/ebuild-helpers/ecompressdir
index fa427757d..f9a846a90 100755
--- a/bin/ebuild-helpers/ecompressdir
+++ b/bin/ebuild-helpers/ecompressdir
@@ -133,14 +133,11 @@ for dir in "$@" ; do
'cp -p "${file}" "${file}.ecompress.break" ; mv -f "${file}.ecompress.break" "${file}"' \;
# now lets do our work
- if [[ -z ${suffix} ]] ; then
- restore_skip_dirs
- continue
+ if [[ -n ${suffix} ]] ; then
+ vecho "${0##*/}: $(ecompress --bin) /${actual_dir#${ED}}"
+ funk_up_dir "compress" "${suffix}" "ecompress"
fi
- vecho "${0##*/}: $(ecompress --bin) /${actual_dir#${ED}}"
- funk_up_dir "compress" "${suffix}" "ecompress"
-
# finally, restore the skipped stuff
restore_skip_dirs
done