summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-smartpm/smart-missingok.patch
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-11-14 18:46:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-06 12:31:05 +0000
commit69b9c6bd0c6f9c9884fa2d92b4062037457d06ad (patch)
tree23f7d595b10a955d2f8b3c786c989c887a0f9300 /meta/recipes-devtools/python/python-smartpm/smart-missingok.patch
parent5443525de8c209c27eab0457c9a5a7ca11ec9865 (diff)
downloadpoky-69b9c6bd0c6f9c9884fa2d92b4062037457d06ad.tar.gz
python-smartpm: add support for recommends
Implement support within Smart for handling RRECOMMENDS relationships between RPM packages as used by OE. This includes support within the base system for caching and resolving these relationships as well as specific support in the RPM backend for reading the information from packages, and reading the "missingok" flag added to createrepo for rpm-md feeds. (From OE-Core rev: 35e3bc90ec3bae824804bd176b3128efdb5b4e2b) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm/smart-missingok.patch')
-rw-r--r--meta/recipes-devtools/python/python-smartpm/smart-missingok.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-missingok.patch b/meta/recipes-devtools/python/python-smartpm/smart-missingok.patch
deleted file mode 100644
index 7e138696b8..0000000000
--- a/meta/recipes-devtools/python/python-smartpm/smart-missingok.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1backends/rpm: Identify recommended packages
2
3We identify and store recommended packages (and later throw that data away.)
4
5This is indended to be the starting work to add support for recommended
6packages to smart.
7
8Upstream-status: Inappropriate [ Code isn't finished! ]
9
10Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
11
12Index: smart-1.4.1/smart/backends/rpm/header.py
13===================================================================
14--- smart-1.4.1.orig/smart/backends/rpm/header.py
15+++ smart-1.4.1/smart/backends/rpm/header.py
16@@ -292,6 +292,7 @@ class RPMHeaderLoader(Loader):
17 f = [0]
18 elif type(f) != list:
19 f = [f]
20+ recdict = {}
21 reqdict = {}
22 for i in range(len(n)):
23 ni = n[i]
24@@ -308,10 +309,17 @@ class RPMHeaderLoader(Loader):
25 # RPMSENSE_SCRIPT_PREUN |
26 # RPMSENSE_SCRIPT_POST |
27 # RPMSENSE_SCRIPT_POSTUN == 7744
28- reqdict[(f[i]&7744 and PreReq or Req,
29- intern(ni), r, vi)] = True
30+ if (f[i]&rpm.RPMSENSE_MISSINGOK):
31+ print "Ignoring Recommend Dependency: %s" % (ni)
32+ recdict[(f[i]&7744 and PreReq or Req,
33+ intern(ni), r, vi)] = True
34+ else:
35+ reqdict[(f[i]&7744 and PreReq or Req,
36+ intern(ni), r, vi)] = True
37+ recargs = collapse_libc_requires(recdict.keys())
38 reqargs = collapse_libc_requires(reqdict.keys())
39 else:
40+ recargs = None
41 reqargs = None
42
43 n = h[1054] # RPMTAG_CONFLICTNAME