Blame SOURCES/redhat-rpm-config-9.1.0-java-repack-order.patch

76c1b9
Index: redhat-rpm-config-9.1.0/brp-java-repack-jars
76c1b9
===================================================================
76c1b9
--- redhat-rpm-config-9.1.0.orig/brp-java-repack-jars
76c1b9
+++ redhat-rpm-config-9.1.0/brp-java-repack-jars
76c1b9
@@ -79,7 +79,10 @@ if [ ! -z "$JARS" ]; then
76c1b9
 		pushd $JARDIR > /dev/null
76c1b9
 
76c1b9
 		if [ -n "`find -not -name '.'`" ]; then
76c1b9
-			find * -not -name '.' | LC_ALL=C sort | /usr/bin/zip -q -X -9 $j -@
76c1b9
+			if [ -e META-INF/MANIFEST.MF ]; then
76c1b9
+			    /usr/bin/zip -q -X -9 $j META-INF/MANIFEST.MF
76c1b9
+			fi
76c1b9
+			find * -not -name '.' | LC_ALL=C sort | /usr/bin/zip -u -q -X -9 $j -@
76c1b9
 		else
76c1b9
 			# Put the empty jar back
76c1b9
 			touch $j