aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-12-01 02:21:00 -0500
committerMike Frysinger <vapier@gentoo.org>2013-12-01 02:21:00 -0500
commite365ea81ad835ef2853e29925047d8ecb2754941 (patch)
tree4fa11f89543da0ced7e3f4d12bbda2a94c7db71a /bin/save-ebuild-env.sh
parentportage.const: restore two dropped features (diff)
downloadportage-e365ea81ad835ef2853e29925047d8ecb2754941.tar.gz
portage-e365ea81ad835ef2853e29925047d8ecb2754941.tar.bz2
portage-e365ea81ad835ef2853e29925047d8ecb2754941.zip
docompress: add --limit support with newer EAPIs
We added support for not compressing files below a certain size (since the speed/size/etc... tradeoffs didn't make sense), but it was only for man pages and old EAPI's. Add the logic to the newer EAPIs and apply to all compressed paths. URL: http://bugs.gentoo.org/169260
Diffstat (limited to 'bin/save-ebuild-env.sh')
-rw-r--r--bin/save-ebuild-env.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/save-ebuild-env.sh b/bin/save-ebuild-env.sh
index 2a3d5eaa0..7a31b89d4 100644
--- a/bin/save-ebuild-env.sh
+++ b/bin/save-ebuild-env.sh
@@ -14,7 +14,8 @@ __save_ebuild_env() {
(
if has --exclude-init-phases $* ; then
unset S _E_DOCDESTTREE_ _E_EXEDESTTREE_ \
- PORTAGE_DOCOMPRESS PORTAGE_DOCOMPRESS_SKIP
+ PORTAGE_DOCOMPRESS_SIZE_LIMIT PORTAGE_DOCOMPRESS \
+ PORTAGE_DOCOMPRESS_SKIP
if [[ -n $PYTHONPATH &&
${PYTHONPATH%%:*} -ef $PORTAGE_PYM_PATH ]] ; then
if [[ $PYTHONPATH == *:* ]] ; then