Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | dumpMetadata.py: Fix for RPM5 - 5.4.9 integration |
| 2 | |
| 3 | RPM5 no longer has a switch to disable signature validation. (Due to security |
| 4 | validation concerns.) |
| 5 | |
| 6 | Upstream-Status: Inappropriate [other] |
| 7 | createrepo does not support RPM5 upstream |
| 8 | |
| 9 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
| 10 | |
| 11 | diff -u createrepo-0.4.11.orig/dumpMetadata.py createrepo-0.4.11/dumpMetadata.py |
| 12 | --- createrepo-0.4.11.orig/dumpMetadata.py 2012-06-05 10:12:55.687964222 -0500 |
| 13 | +++ createrepo-0.4.11/dumpMetadata.py 2012-06-05 10:40:08.154060600 -0500 |
| 14 | @@ -92,7 +92,7 @@ |
| 15 | fdno = package # let's assume this is an fdno and go with it :) |
| 16 | except OSError: |
| 17 | raise MDError, "Error opening file" |
| 18 | - ts.setVSFlags((rpm._RPMVSF_NOSIGNATURES|rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD)) |
| 19 | + ts.setVSFlags((rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD)) |
| 20 | try: |
| 21 | hdr = ts.hdrFromFdno(fdno) |
| 22 | except rpm.error: |