Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: [gentoo-portage-dev] [PATCH v2 1/3] ecompress: delete *.ecompress for empty PORTAGE_COMPRESS (bug 667008)
Date: Tue, 25 Sep 2018 19:54:06
Message-Id: 20180925195349.23527-1-mgorny@gentoo.org
1 From: Zac Medico <zmedico@g.o>
2
3 Fixes: aa0a94198794 ("ecompress: Replace with implementation from portage[mgorny]")
4 Bug: https://bugs.gentoo.org/667008
5 Signed-off-by: Zac Medico <zmedico@g.o>
6 ---
7 bin/ecompress | 5 ++++-
8 1 file changed, 4 insertions(+), 1 deletion(-)
9
10 diff --git a/bin/ecompress b/bin/ecompress
11 index 83d97ae6e..36bdb585b 100755
12 --- a/bin/ecompress
13 +++ b/bin/ecompress
14 @@ -69,7 +69,10 @@ done
15
16 # setup compression stuff
17 PORTAGE_COMPRESS=${PORTAGE_COMPRESS-bzip2}
18 -[[ -z ${PORTAGE_COMPRESS} ]] && exit 0
19 +if [[ -z ${PORTAGE_COMPRESS} ]]; then
20 + find "${ED}" -name '*.ecompress' -delete
21 + exit 0
22 +fi
23
24 if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
25 case ${PORTAGE_COMPRESS} in
26 --
27 2.19.0

Replies