[OE-core] [PATCH] package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg

Ross Burton ross.burton at intel.com
Wed Oct 17 10:02:23 UTC 2018


The rpm and dpkg package managers both support package exclusion at install
time, which we expose though the PACKAGE_EXCLUDE variable.  However opkg doesn't
support this, so show a warning if PACKAGE_EXCLUDE is used with file systems
built using opkg.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oe/package_manager.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 2c7cdb2e17d..4214abe9f88 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1323,6 +1323,9 @@ class OpkgPM(OpkgDpkgPM):
         if not pkgs:
             return
 
+        if self.d.getVar("PACKAGE_EXCLUDE"):
+            bb.warn("PACKAGE_EXCLUDE is set but package_ipkg doesn't support this")
+
         cmd = "%s %s install %s" % (self.opkg_cmd, self.opkg_args, ' '.join(pkgs))
 
         os.environ['D'] = self.target_rootfs
-- 
2.11.0




More information about the Openembedded-core mailing list