diff options
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.patch | 46 |
1 files changed, 46 insertions, 0 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 new file mode 100644 index 0000000000..9919a941bc --- /dev/null +++ b/meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | RPM5 has removed support for RPMVSF_NOSIGNATURES | ||
2 | |||
3 | Patch smart to no longer use this flag | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
8 | |||
9 | diff -ur smart-1.4.1.orig/smart/backends/rpm/base.py smart-1.4.1/smart/backends/rpm/base.py | ||
10 | --- smart-1.4.1.orig/smart/backends/rpm/base.py 2012-10-04 11:22:11.229351164 -0500 | ||
11 | +++ smart-1.4.1/smart/backends/rpm/base.py 2012-10-04 11:22:44.820170786 -0500 | ||
12 | @@ -53,8 +53,8 @@ | ||
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 | - getTS.ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES) | ||
18 | + #if not sysconf.get("rpm-check-signatures", False): | ||
19 | + # getTS.ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES) | ||
20 | rpm_dbpath = sysconf.get("rpm-dbpath", "var/lib/rpm") | ||
21 | dbdir = os.path.join(getTS.root, rpm_dbpath) | ||
22 | if not os.path.isdir(dbdir): | ||
23 | @@ -82,8 +82,8 @@ | ||
24 | if sysconf.get("rpm-dbpath"): | ||
25 | rpm.addMacro('_dbpath', "/" + sysconf.get("rpm-dbpath")) | ||
26 | ts = rpm.ts(getTS.root) | ||
27 | - if not sysconf.get("rpm-check-signatures", False): | ||
28 | - ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES) | ||
29 | + #if not sysconf.get("rpm-check-signatures", False): | ||
30 | + # ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES) | ||
31 | return ts | ||
32 | else: | ||
33 | return getTS.ts | ||
34 | diff -ur smart-1.4.1.orig/smart/plugins/yumchannelsync.py smart-1.4.1/smart/plugins/yumchannelsync.py | ||
35 | --- smart-1.4.1.orig/smart/plugins/yumchannelsync.py 2010-12-06 03:11:05.000000000 -0600 | ||
36 | +++ smart-1.4.1/smart/plugins/yumchannelsync.py 2012-10-04 11:23:09.799350924 -0500 | ||
37 | @@ -56,7 +56,8 @@ | ||
38 | |||
39 | rpmroot = sysconf.get("rpm-root", "/") | ||
40 | ts = rpmUtils.transaction.initReadOnlyTransaction(root=rpmroot) | ||
41 | - ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS)) | ||
42 | + #ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS)) | ||
43 | + ts.pushVSFlags(~(rpm._RPMVSF_NODIGESTS)) | ||
44 | releasever = None | ||
45 | # HACK: we're hard-coding the most used distros, will add more if needed | ||
46 | idx = ts.dbMatch('provides', 'fedora-release') | ||