Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg
@ 2018-10-17 10:02 Ross Burton
  0 siblings, 0 replies; only message in thread
From: Ross Burton @ 2018-10-17 10:02 UTC (permalink / raw)
  To: openembedded-core

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(+)

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-17 10:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-17 10:02 [PATCH] package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg Ross Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox