package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg

Message ID 20181017100223.11468-1-ross.burton@intel.com
State New
Headers show
Series
  • package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg
Related show

Commit Message

Burton, Ross Oct. 17, 2018, 10:02 a.m.
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@intel.com>

---
 meta/lib/oe/package_manager.py | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

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