]> git.pld-linux.org Git - packages/yum.git/commitdiff
rpm5 patch
authorElan Ruusamäe <glen@delfi.ee>
Sat, 2 Mar 2013 19:26:03 +0000 (21:26 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 2 Mar 2013 19:26:03 +0000 (21:26 +0200)
_RPMVSF_NOSIGNATURES and _RPMVSF_NODIGESTS have been removed in rpm 5

rpm5.patch [new file with mode: 0644]
yum.spec

diff --git a/rpm5.patch b/rpm5.patch
new file mode 100644 (file)
index 0000000..4946153
--- /dev/null
@@ -0,0 +1,47 @@
+--- yum-3.4.3/./rpmUtils/transaction.py~       2011-06-28 23:27:22.000000000 +0300
++++ yum-3.4.3/./rpmUtils/transaction.py        2013-03-02 21:20:39.440848577 +0200
+@@ -188,6 +188,5 @@
+         
+ def initReadOnlyTransaction(root='/'):
+     read_ts =  TransactionWrapper(root=root)
+-    read_ts.pushVSFlags((rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
+     return read_ts
+--- yum-3.4.3/./rpmUtils/oldUtils.py~  2011-06-28 23:27:22.000000000 +0300
++++ yum-3.4.3/./rpmUtils/oldUtils.py   2013-03-02 21:21:04.748684625 +0200
+@@ -273,7 +273,6 @@
+ class RPM_Work(RPM_Base_Work):
+     def __init__(self, rpmfn):
+-        ts.setVSFlags(~(rpm._RPMVSF_NOSIGNATURES))
+         fd = os.open(rpmfn, os.O_RDONLY)
+         try:
+             self.hdr = ts.hdrFromFdno(fd)
+@@ -343,7 +342,6 @@
+             self.ts.setVSFlags(~(rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD))
+         elif sig == 'none':
+             # turn off everything - period
+-            self.ts.setVSFlags(~(rpm._RPMVSF_NOSIGNATURES))
+         elif sig == 'default':
+             # set it back to the default
+             self.ts.setVSFlags(rpm.RPMVSF_DEFAULT)
+--- yum-3.4.3/./yum/__init__.py~       2011-06-28 23:27:22.000000000 +0300
++++ yum-3.4.3/./yum/__init__.py        2013-03-02 21:21:20.632751902 +0200
+@@ -3087,7 +3087,6 @@
+             return 1
+             
+         myts = rpmUtils.transaction.initReadOnlyTransaction(root=self.conf.installroot)
+-        myts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
+         idx = myts.dbMatch('name', 'gpg-pubkey')
+         keys = idx.count()
+         del idx
+--- yum-3.4.3/./yum/config.py~ 2013-03-02 21:19:35.000000000 +0200
++++ yum-3.4.3/./yum/config.py  2013-03-02 21:21:29.133144673 +0200
+@@ -1006,7 +1006,6 @@
+     @return: The release version as a string (eg. '4' for FC4)
+     '''
+     ts = rpmUtils.transaction.initReadOnlyTransaction(root=installroot)
+-    ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
+     try:
+         idx = ts.dbMatch('provides', distroverpkg)
+     except TypeError, e:
index c6bff9c3b815d3dfad7ffe90a24cb2fec2efba25..669182112d8b4b41a02d3bf2bd6d224434db02b3 100644 (file)
--- a/yum.spec
+++ b/yum.spec
@@ -28,6 +28,7 @@ Patch3:               %{name}-pld.patch
 Patch4:                %{name}-amd64.patch
 Patch5:                %{name}-config.patch
 Patch6:                nosetests.patch
+Patch7:                rpm5.patch
 # fc
 Patch10:       installonlyn-enable.patch
 Patch11:       %{name}-mirror-priority.patch
@@ -85,6 +86,7 @@ zapytaniu użytkownika w razie potrzeby.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 %{__make}
This page took 0.06489 seconds and 4 git commands to generate.