summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-smartpm/smart-config-ignore-all-recommends.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm/smart-config-ignore-all-recommends.patch')
-rw-r--r--meta/recipes-devtools/python/python-smartpm/smart-config-ignore-all-recommends.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-config-ignore-all-recommends.patch b/meta/recipes-devtools/python/python-smartpm/smart-config-ignore-all-recommends.patch
new file mode 100644
index 0000000000..df9d7799e8
--- /dev/null
+++ b/meta/recipes-devtools/python/python-smartpm/smart-config-ignore-all-recommends.patch
@@ -0,0 +1,24 @@
1Add a simple method to disable the install of recommended packages
2
3Upstream-Status: Pending
4
5Usage:
6 smart config --set ignore-all-recommends=1
7
8Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9
10Index: smart-1.4.1/smart/transaction.py
11===================================================================
12--- smart-1.4.1.orig/smart/transaction.py
13+++ smart-1.4.1/smart/transaction.py
14@@ -611,7 +611,9 @@ class Transaction(object):
15 for prv in req.providedby:
16 for prvpkg in prv.packages:
17 if not reqrequired:
18- if pkgconf.testFlag("ignore-recommends", prvpkg):
19+ if sysconf.get("ignore-all-recommends", 0) == 1:
20+ continue
21+ elif pkgconf.testFlag("ignore-recommends", prvpkg):
22 continue
23 if isinst(prvpkg):
24 found = True