[elbe-devel] [PATCH v1 1/2] daemons: esoap: replace deprecated apt-get parameter
Holger Dengler
dengler at linutronix.de
Wed Mar 16 12:48:44 CET 2022
The --force-yes parameter of apt-get is deprecated. It allows a lot of
unnecessary and unwanted actions, such as the usage of unauthenticated
repositories. Only allow package downgrades as a replacement.
Signed-off-by: Holger Dengler <dengler at linutronix.de>
---
elbepack/daemons/soap/esoap.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/daemons/soap/esoap.py b/elbepack/daemons/soap/esoap.py
index 5b47aebf..415b7f0d 100644
--- a/elbepack/daemons/soap/esoap.py
+++ b/elbepack/daemons/soap/esoap.py
@@ -83,7 +83,7 @@ class ESoap (ServiceBase):
'DEBIAN_FRONTEND': 'noninteractive',
'DEBCONF_NONINTERACTIVE_SEEN': 'true'}
- cmd = 'apt-get install -y --force-yes %s' % ' '.join(pkgs)
+ cmd = 'apt-get install -y --allow-downgrades %s' % ' '.join(pkgs)
ret, out = command_out(cmd, env_add=env)
finally:
--
2.35.1
More information about the elbe-devel
mailing list