Dont try to repack empty JAR's (#269481, #547699)

- patch originally from Kai Bolay
This commit is contained in:
Panu Matilainen 2010-01-22 10:59:42 +02:00
parent 9ed9b4e345
commit afe45959fb

View File

@ -13,7 +13,7 @@ if [ ! -x /usr/bin/unzip ]; then
exit 0 exit 0
fi fi
JARS=`find $RPM_BUILD_ROOT -type f -name \*.jar` JARS=`find $RPM_BUILD_ROOT -type f -name \*.jar -not -size 0`
if [ ! -z "$JARS" ]; then if [ ! -z "$JARS" ]; then
# make $RPM_BUILD_ROOT/tmp if it doesn't exist # make $RPM_BUILD_ROOT/tmp if it doesn't exist