aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2020-04-01 16:58:01 +0200
committerAnuj Mittal <anuj.mittal@intel.com>2020-04-06 15:17:05 +0800
commit15790fa224f405652e8ccc93c01dee04a7259246 (patch)
tree9afba20e113fe3f9cdf5770dd0da62f4b5ff48dd
parent443d1c8c7fb5a69c03c813f3e90758e0add7df4b (diff)
downloadopenembedded-core-contrib-15790fa224f405652e8ccc93c01dee04a7259246.tar.gz
openembedded-core-contrib-15790fa224f405652e8ccc93c01dee04a7259246.tar.bz2
openembedded-core-contrib-15790fa224f405652e8ccc93c01dee04a7259246.zip
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. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 9605a488b55042add012e9aeef13ab3f4e70e6e5) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--meta/lib/oe/package_manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 7c373715adf..61206daeaa8 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1619,7 +1619,7 @@ class DpkgPM(OpkgDpkgPM):
os.environ['APT_CONFIG'] = self.apt_conf_file
- cmd = "%s %s install --force-yes --allow-unauthenticated %s" % \
+ cmd = "%s %s install --force-yes --allow-unauthenticated --no-remove %s" % \
(self.apt_get_cmd, self.apt_args, ' '.join(pkgs))
try: