Don't compress empty files, bug 340935.
authorUlrich Mueller <ulm@gentoo.org>
Thu, 14 Oct 2010 07:52:00 +0000 (09:52 +0200)
committerZac Medico <zmedico@gentoo.org>
Thu, 14 Oct 2010 08:19:21 +0000 (01:19 -0700)
bin/ebuild-helpers/ecompress

index ef01cd4e0b97aa21a48c9a1a1ff1c121747af0da..ed19ffb1b34479bdcfe98d64d379cf823991b508 100755 (executable)
@@ -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