diff options
author | Ross Burton <ross.burton@intel.com> | 2018-10-17 17:50:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-18 10:56:55 +0100 |
commit | 8c5f73e78ce23e9cab70cb39b11c8b9a5ebc024b (patch) | |
tree | 0bb0e4252d6801fc911efe7ded85a742f3f1cb21 /meta/lib | |
parent | d6f856bb927f6c35cc10e24a2c6bd2986ea109f4 (diff) | |
download | poky-8c5f73e78ce23e9cab70cb39b11c8b9a5ebc024b.tar.gz |
package_manager: implement PACKAGE_EXCLUDE for opkg
opkg has supported the --add-exclude option to install since 0.3.0, so use it to
implement support for PACKAGE_EXCLUDE.
(From OE-Core rev: 6cc99d48c57cb22104980d0d758540e06cb7b80d)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package_manager.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 8f4b42b0da..5964c61338 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -1322,7 +1322,11 @@ class OpkgPM(OpkgDpkgPM): | |||
1322 | if not pkgs: | 1322 | if not pkgs: |
1323 | return | 1323 | return |
1324 | 1324 | ||
1325 | cmd = "%s %s install %s" % (self.opkg_cmd, self.opkg_args, ' '.join(pkgs)) | 1325 | cmd = "%s %s" % (self.opkg_cmd, self.opkg_args) |
1326 | for exclude in (self.d.getVar("PACKAGE_EXCLUDE") or "").split(): | ||
1327 | cmd += " --add-exclude %s" % exclude | ||
1328 | cmd += " install " | ||
1329 | cmd += " ".join(pkgs) | ||
1326 | 1330 | ||
1327 | os.environ['D'] = self.target_rootfs | 1331 | os.environ['D'] = self.target_rootfs |
1328 | os.environ['OFFLINE_ROOT'] = self.target_rootfs | 1332 | os.environ['OFFLINE_ROOT'] = self.target_rootfs |