deb: replace deprecated apt force-yes argument
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
Signed-off-by Richard Leitner <[email protected]>
--- 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
@@ -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