mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
02eacce410
commit
440be55987
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user