diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-10-04 13:57:00 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-18 16:42:02 +0000 |
commit | 3d8fd40f9f339564d8b7c80e2f60cc4f49826def (patch) | |
tree | c4e614f31c43da4e718514c3b4e185824a005319 /meta/recipes-devtools/python/python-smartpm/smartpm-rpm5-nodig.patch | |
parent | 4dd9d39dca1221792f963f7fa74da0d0221f12ef (diff) | |
download | poky-3d8fd40f9f339564d8b7c80e2f60cc4f49826def.tar.gz |
python-smartpm: Add smartpm recipe
This is the initial integration, basic functionality such as 'smart query'
has been tested. Active use of remote feeds and such has not yet been
verified.
Thanks to Paul Eggleton for corrections and bug fixes for the initial
integration.
(From OE-Core rev: 92182ca88aff9cec04b2af5e9babaf33bf61f0af)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.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.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') | ||