From: Ross Burton <ross.burton@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] package_manager: warn that PACKAGE_EXCLUDE doesn't work for opkg
Date: Wed, 17 Oct 2018 11:02:23 +0100 [thread overview]
Message-ID: <20181017100223.11468-1-ross.burton@intel.com> (raw)
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
reply other threads:[~2018-10-17 10:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181017100223.11468-1-ross.burton@intel.com \
--to=ross.burton@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox