[oe-commits] Mark Hatle : python-smartpm: Add support to disable installing recommends
git at git.openembedded.org
git at git.openembedded.org
Thu Aug 22 17:20:06 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 6fd8141bbdcd84c591149d84ad84effc2357de72
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6fd8141bbdcd84c591149d84ad84effc2357de72
Author: Mark Hatle <mark.hatle at windriver.com>
Date: Mon Aug 12 19:45:48 2013 -0500
python-smartpm: Add support to disable installing recommends
In order to attempt to reduce image sizes by skipping recommended packages,
a new mode was added to smart that only evaluates required packaged.
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
.../smart-config-ignore-all-recommends.patch | 24 ++++++++++++++++++++
.../python/python-smartpm_1.4.1.bb | 1 +
2 files changed, 25 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 0000000..df9d779
--- /dev/null
+++ b/meta/recipes-devtools/python/python-smartpm/smart-config-ignore-all-recommends.patch
@@ -0,0 +1,24 @@
+Add a simple method to disable the install of recommended packages
+
+Upstream-Status: Pending
+
+Usage:
+ smart config --set ignore-all-recommends=1
+
+Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
+
+Index: smart-1.4.1/smart/transaction.py
+===================================================================
+--- smart-1.4.1.orig/smart/transaction.py
++++ smart-1.4.1/smart/transaction.py
+@@ -611,7 +611,9 @@ class Transaction(object):
+ for prv in req.providedby:
+ for prvpkg in prv.packages:
+ if not reqrequired:
+- if pkgconf.testFlag("ignore-recommends", prvpkg):
++ if sysconf.get("ignore-all-recommends", 0) == 1:
++ continue
++ elif pkgconf.testFlag("ignore-recommends", prvpkg):
+ continue
+ if isinst(prvpkg):
+ found = True
diff --git a/meta/recipes-devtools/python/python-smartpm_1.4.1.bb b/meta/recipes-devtools/python/python-smartpm_1.4.1.bb
index b3b471a..5d673b9 100644
--- a/meta/recipes-devtools/python/python-smartpm_1.4.1.bb
+++ b/meta/recipes-devtools/python/python-smartpm_1.4.1.bb
@@ -29,6 +29,7 @@ SRC_URI = "\
file://smart-conflict-provider.patch \
file://smart-flag-ignore-recommends.patch \
file://smart-flag-exclude-packages.patch \
+ file://smart-config-ignore-all-recommends.patch \
"
SRC_URI[md5sum] = "573ef32ba177a6b3c4bf7ef04873fcb6"
More information about the Openembedded-commits
mailing list