summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2020-10-29 11:07:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-30 13:04:39 +0000
commit6fd014b7c42f7b6b1ed50940409d9dd730547bec (patch)
tree2757432821e7dddaba1e8ea81e5a978c9194b6aa
parentb788bc672bf192fb16419f4ed9536be9dc73206e (diff)
downloadpoky-6fd014b7c42f7b6b1ed50940409d9dd730547bec.tar.gz
deb: replace deprecated apt force-yes argument
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 (From OE-Core rev: 4af737e2643f498d1ff4c387207bd8c4f3d405b8) Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/package_manager/deb/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager/deb/__init__.py b/meta/lib/oe/package_manager/deb/__init__.py
index 72155b178c..26157f591a 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):
282 282
283 os.environ['APT_CONFIG'] = self.apt_conf_file 283 os.environ['APT_CONFIG'] = self.apt_conf_file
284 284
285 cmd = "%s %s install --force-yes --allow-unauthenticated --no-remove %s" % \ 285 cmd = "%s %s install --allow-downgrades --allow-remove-essential --allow-change-held-packages --allow-unauthenticated --no-remove %s" % \
286 (self.apt_get_cmd, self.apt_args, ' '.join(pkgs)) 286 (self.apt_get_cmd, self.apt_args, ' '.join(pkgs))
287 287
288 try: 288 try: