From: Zac Medico <[email protected]>
Fixes: aa0a94198794 ("ecompress: Replace with implementation from
portage[mgorny]")
Bug: https://bugs.gentoo.org/667008
Signed-off-by: Zac Medico <[email protected]>
---
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
--
2.19.0