Skip to contentSkip to conversation

deb: replace deprecated apt force-yes argument

PATCH New Richard Leitner 1 participant 1 message Oct 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 deb: replace deprecated apt force-yes argument

From: Richard Leitner <[email protected]>

apt-get deprecated --force-yes in favor of various options starting with --allow [1]. Replace it to avoid the following warning:

W: --force-yes is deprecated, use one of the options starting with --allow instead.

[1] https://salsa.debian.org/apt-team/apt/-/blob/master/debian/changelog

---
 meta/lib/oe/package_manager/deb/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/package_manager/deb/__init__.py +1 -1
index 67c241a6f6..6c56991911 100644
@@ -282,7 +282,7 @@ class DpkgPM(OpkgDpkgPM):
 
         os.environ['APT_CONFIG'] = self.apt_conf_file
 
-        cmd = "%s %s install --force-yes --allow-unauthenticated --no-remove %s" % \
+        cmd = "%s %s install --allow-downgrades --allow-remove-essential --allow-change-held-packages --allow-unauthenticated --no-remove %s" % \
               (self.apt_get_cmd, self.apt_args, ' '.join(pkgs))
 
         try:
Signature · 1 line
2.28.0