dcavalca / rpms / rpm

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