blob: bc7200d0722fb2f852d9209d5ca787b06c9534dd [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001dumpMetadata.py: Fix for RPM5 - 5.4.9 integration
2
3RPM5 no longer has a switch to disable signature validation. (Due to security
4validation concerns.)
5
6Upstream-Status: Inappropriate [other]
7 createrepo does not support RPM5 upstream
8
9Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
10
11diff -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: