commit:     fbc100e6880291ea18cfcf8aa0a40c4d921dceaf
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 24 20:22:20 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Sep 24 20:24:03 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=fbc100e6

ecompress: delete *.ecompress for empty PORTAGE_COMPRESS (bug 667008)

Fixes: aa0a94198794 ("ecompress: Replace with implementation from 
portage[mgorny]")
Bug: https://bugs.gentoo.org/667008
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 bin/ecompress | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/ecompress b/bin/ecompress
index 83d97ae6e..36bdb585b 100755
--- a/bin/ecompress
+++ b/bin/ecompress
@@ -69,7 +69,10 @@ done
 
 # setup compression stuff
 PORTAGE_COMPRESS=${PORTAGE_COMPRESS-bzip2}
-[[ -z ${PORTAGE_COMPRESS} ]] && exit 0
+if [[ -z ${PORTAGE_COMPRESS} ]]; then
+       find "${ED}" -name '*.ecompress' -delete
+       exit 0
+fi
 
 if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
        case ${PORTAGE_COMPRESS} in

Reply via email to