]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/package_manager: make sure to not remove packages in apt install
authorJan Luebbe <jlu@pengutronix.de>
Wed, 1 Apr 2020 14:58:01 +0000 (16:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Apr 2020 22:18:09 +0000 (23:18 +0100)
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>
meta/lib/oe/package_manager.py

index 2ea8046332af199a0fcf98e6fc10471fff77a88d..dfe4197ce1fb1efd8353f81f1d3653b5935a643d 100644 (file)
@@ -1624,7 +1624,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: