package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg
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.
Signed-off-by Ross Burton <[email protected]>
--- meta/lib/oe/package_manager.py | 3 +++ 1 file changed, 3 insertions(+)
meta/lib/oe/package_manager.py +3 -0
@@ -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