diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-09-24 13:22:20 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-09-24 13:24:03 -0700 |
commit | fbc100e6880291ea18cfcf8aa0a40c4d921dceaf (patch) | |
tree | 9de81b4df1193013944946e95307088596558e25 /bin | |
parent | Updates for portage-2.3.50 release (diff) | |
download | portage-fbc100e6880291ea18cfcf8aa0a40c4d921dceaf.tar.gz portage-fbc100e6880291ea18cfcf8aa0a40c4d921dceaf.tar.bz2 portage-fbc100e6880291ea18cfcf8aa0a40c4d921dceaf.zip |
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@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ecompress | 5 |
1 files changed, 4 insertions, 1 deletions
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 |