diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2020-04-01 16:58:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-02 15:24:58 +0100 |
commit | 440be559875a8acbbfd4449c753524a210c31554 (patch) | |
tree | 50a0b9a1ac839d6f9921ea2893c6472f1435fb1a /meta | |
parent | 02eacce4109e50f31fecb653de808f0c31ac68bb (diff) | |
download | poky-440be559875a8acbbfd4449c753524a210c31554.tar.gz |
lib/oe/package_manager: make sure to not remove packages in apt install
apt install can decide to remove already installed packages if there are
conflicts. Avoid this by explicitly specifying --no-remove. This will
then cause a "E: Packages need to be removed but remove is disabled."
message.
(From OE-Core rev: 9605a488b55042add012e9aeef13ab3f4e70e6e5)
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 2ea8046332..dfe4197ce1 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -1624,7 +1624,7 @@ class DpkgPM(OpkgDpkgPM): | |||
1624 | 1624 | ||
1625 | os.environ['APT_CONFIG'] = self.apt_conf_file | 1625 | os.environ['APT_CONFIG'] = self.apt_conf_file |
1626 | 1626 | ||
1627 | cmd = "%s %s install --force-yes --allow-unauthenticated %s" % \ | 1627 | cmd = "%s %s install --force-yes --allow-unauthenticated --no-remove %s" % \ |
1628 | (self.apt_get_cmd, self.apt_args, ' '.join(pkgs)) | 1628 | (self.apt_get_cmd, self.apt_args, ' '.join(pkgs)) |
1629 | 1629 | ||
1630 | try: | 1630 | try: |