summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch
diff options
context:
space:
mode:
authormingli.yu@windriver.com <mingli.yu@windriver.com>2016-07-20 16:51:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:56:29 +0100
commitf02f0edeaabb7b5c437dfb7a4bf174fe29ab5a87 (patch)
treeffd6f59769984c4c4afb4f566a5a975359a58d88 /meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch
parent2f6bbc7006f2b34ab533d3582f28323330c7195d (diff)
downloadpoky-f02f0edeaabb7b5c437dfb7a4bf174fe29ab5a87.tar.gz
python-smartpm: add support to check signatures
RPMv5 has removed support for _RPMVSF_NOSIGNATURES, the flag can be replaced with a flags set: "RPMVSF_NODSAHEADER|RPMVSF_NORSAHEADER|RPMVSF_NODSA RPMVSF_NORSA" (From OE-Core rev: 5c0c1b8a64643ad7130b17b5dfce9cecffa6d962) Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com> Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch')
-rw-r--r--meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch59
1 files changed, 0 insertions, 59 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch b/meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch
deleted file mode 100644
index fefb29a666..0000000000
--- a/meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch
+++ /dev/null
@@ -1,59 +0,0 @@
1RPM5 has removed support for RPMVSF_NOSIGNATURES
2
3Patch smart to no longer use this flag
4
5Upstream-Status: Pending
6
7Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
8
9diff --git a/smart/backends/rpm/base.py b/smart/backends/rpm/base.py
10--- a/smart/backends/rpm/base.py
11+++ b/smart/backends/rpm/base.py
12@@ -63,11 +63,11 @@ def getTS(new=False):
13 if sysconf.get("rpm-dbpath"):
14 rpm.addMacro('_dbpath', "/" + sysconf.get("rpm-dbpath"))
15 getTS.ts = rpm.ts(getTS.root)
16- if not sysconf.get("rpm-check-signatures", False):
17- if hasattr(rpm, '_RPMVSF_NOSIGNATURES'):
18- getTS.ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES)
19- else:
20- raise Error, _("rpm requires checking signatures")
21+ #if not sysconf.get("rpm-check-signatures", False):
22+ # if hasattr(rpm, '_RPMVSF_NOSIGNATURES'):
23+ # getTS.ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES)
24+ # else:
25+ # raise Error, _("rpm requires checking signatures")
26 rpm_dbpath = sysconf.get("rpm-dbpath", "var/lib/rpm")
27 dbdir = rpm_join_dbpath(getTS.root, rpm_dbpath)
28 if not os.path.isdir(dbdir):
29@@ -89,11 +89,11 @@ def getTS(new=False):
30 if sysconf.get("rpm-dbpath"):
31 rpm.addMacro('_dbpath', "/" + sysconf.get("rpm-dbpath"))
32 ts = rpm.ts(getTS.root)
33- if not sysconf.get("rpm-check-signatures", False):
34- if hasattr(rpm, '_RPMVSF_NOSIGNATURES'):
35- ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES)
36- else:
37- raise Error, _("rpm requires checking signatures")
38+ #if not sysconf.get("rpm-check-signatures", False):
39+ # if hasattr(rpm, '_RPMVSF_NOSIGNATURES'):
40+ # ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES)
41+ # else:
42+ # raise Error, _("rpm requires checking signatures")
43 return ts
44 else:
45 return getTS.ts
46diff --git a/smart/plugins/yumchannelsync.py b/smart/plugins/yumchannelsync.py
47--- a/smart/plugins/yumchannelsync.py
48+++ b/smart/plugins/yumchannelsync.py
49@@ -56,8 +56,8 @@ def _getreleasever():
50
51 rpmroot = sysconf.get("rpm-root", "/")
52 ts = rpmUtils.transaction.initReadOnlyTransaction(root=rpmroot)
53- if hasattr(rpm, '_RPMVSF_NOSIGNATURES') and hasattr(rpm, '_RPMVSF_NODIGESTS'):
54- ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
55+ #if hasattr(rpm, '_RPMVSF_NOSIGNATURES') and hasattr(rpm, '_RPMVSF_NODIGESTS'):
56+ # ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
57 releasever = None
58 # HACK: we're hard-coding the most used distros, will add more if needed
59 idx = ts.dbMatch('provides', 'fedora-release')