* [PATCH] deb: replace deprecated apt force-yes argument
@ 2020-10-29 10:07 Richard Leitner
0 siblings, 0 replies; only message in thread
From: Richard Leitner @ 2020-10-29 10:07 UTC (permalink / raw)
To: openembedded-core; +Cc: Richard Leitner
From: Richard Leitner <richard.leitner@skidata.com>
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 <richard.leitner@skidata.com>
---
meta/lib/oe/package_manager/deb/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/package_manager/deb/__init__.py b/meta/lib/oe/package_manager/deb/__init__.py
index 67c241a6f6..6c56991911 100644
--- a/meta/lib/oe/package_manager/deb/__init__.py
+++ b/meta/lib/oe/package_manager/deb/__init__.py
@@ -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:
--
2.28.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-29 10:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-29 10:07 [PATCH] deb: replace deprecated apt force-yes argument Richard Leitner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox