]> git.pld-linux.org Git - packages/dnf.git/blob - rpm5.patch
up to 4.19.0
[packages/dnf.git] / rpm5.patch
1 --- dnf/dnf/base.py~    2014-12-09 13:36:18.000000000 +0200
2 +++ dnf/dnf/base.py     2015-01-31 19:34:11.698771194 +0200
3 @@ -284,10 +284,9 @@
4                          'nodocs': rpm.RPMTRANS_FLAG_NODOCS,
5                          'test': rpm.RPMTRANS_FLAG_TEST,
6                          'justdb': rpm.RPMTRANS_FLAG_JUSTDB,
7 -                        'nocontexts': rpm.RPMTRANS_FLAG_NOCONTEXTS,
8 -                        'nocrypto' : rpm.RPMTRANS_FLAG_NOFILEDIGEST}
9 -    _TS_VSFLAGS_TO_RPM = {'nocrypto' : rpm._RPMVSF_NOSIGNATURES |
10 -                          rpm._RPMVSF_NODIGESTS}
11 +                        'nocontexts': 0,
12 +                        'nocrypto' : 0}
13 +    _TS_VSFLAGS_TO_RPM = {'nocrypto' : rpm.RPMVSF_NODSAHEADER }
14  
15      @property
16      def ts(self):
17 @@ -1254,7 +1253,7 @@
18  
19          installroot = self.conf.installroot
20          myts = dnf.rpm.transaction.initReadOnlyTransaction(root=installroot)
21 -        myts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
22 +        myts.pushVSFlags(~rpm.RPMVSF_NODSAHEADER)
23          idx = myts.dbMatch('name', 'gpg-pubkey')
24          keys = len(idx)
25          del idx
26 --- dnf/dnf/rpm/transaction.py~ 2014-12-09 13:36:18.000000000 +0200
27 +++ dnf/dnf/rpm/transaction.py  2015-01-31 19:37:26.945547832 +0200
28 @@ -119,5 +119,5 @@
29  
30  def initReadOnlyTransaction(root='/'):
31      read_ts =  TransactionWrapper(root=root)
32 -    read_ts.pushVSFlags((rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
33 +    read_ts.pushVSFlags(rpm.RPMVSF_NODSAHEADER)
34      return read_ts
35 --- dnf/dnf/rpm/__init__.py~    2014-12-09 13:36:18.000000000 +0200
36 +++ dnf/dnf/rpm/__init__.py     2015-01-31 19:36:50.920349099 +0200
37 @@ -29,7 +29,7 @@
38      """Calculate the release version for the system. :api"""
39  
40      ts = transaction.initReadOnlyTransaction(root=installroot)
41 -    ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
42 +    ts.pushVSFlags(~rpm.RPMVSF_NODSAHEADER)
43      for distroverpkg in dnf.const.DISTROVERPKG:
44          try:
45              idx = ts.dbMatch('provides', distroverpkg)
This page took 0.070378 seconds and 3 git commands to generate.