michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone
0b2921
diff --git a/rpm2cpio.c b/rpm2cpio.c
0b2921
index 89ebdfa..ae999ff 100644
0b2921
--- a/rpm2cpio.c
0b2921
+++ b/rpm2cpio.c
0b2921
@@ -84,7 +84,12 @@ int main(int argc, char *argv[])
0b2921
 	exit(EXIT_FAILURE);
0b2921
     }
0b2921
 
0b2921
-    rc = (ufdCopy(gzdi, fdo) == payload_size) ? EXIT_SUCCESS : EXIT_FAILURE;
0b2921
+    /*
0b2921
+     * XXX HACK for #1142949: should be equality test, but archive size
0b2921
+     * short by cpio trailer size in packages built with rpm 4.12.0
0b2921
+     * and its pre-releases.
0b2921
+     */
0b2921
+    rc = (ufdCopy(gzdi, fdo) >= payload_size) ? EXIT_SUCCESS : EXIT_FAILURE;
0b2921
 
0b2921
     Fclose(fdo);
0b2921