From: Ulrich Mueller Date: Thu, 14 Oct 2010 07:52:00 +0000 (+0200) Subject: Don't compress empty files, bug 340935. X-Git-Tag: v2.1.9.19~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4ca6503317d901a854274913425562efa3de21a;p=portage.git Don't compress empty files, bug 340935. --- diff --git a/bin/ebuild-helpers/ecompress b/bin/ebuild-helpers/ecompress index ef01cd4e0..ed19ffb1b 100755 --- a/bin/ebuild-helpers/ecompress +++ b/bin/ebuild-helpers/ecompress @@ -132,6 +132,7 @@ case $1 in i=0 for x in "$@" ; do [[ ${x##*.} =~ $mask_ext_re ]] && continue + [[ -s ${x} ]] || continue filtered_args[$i]=$x ((i++)) done