Skip to contentSkip to conversation

package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg

PATCH New Ross Burton 1 participant 1 message Oct 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg

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.

---
 meta/lib/oe/package_manager.py | 3 +++
 1 file changed, 3 insertions(+)
meta/lib/oe/package_manager.py +3 -0
index 2c7cdb2e17d..4214abe9f88 100644
@@ -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
Signature · 1 line
2.11.0