upgrades: ignore boring insserv warnings during apt commands

This commit is contained in:
Alexandre Aubin 2022-08-15 16:42:56 +02:00
parent 75e96a42ff
commit 87f0eff955

View file

@ -698,6 +698,8 @@ def _apt_log_line_is_relevant(line):
"==> Keeping old config file as default.",
"is a disabled or a static unit",
" update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults",
"insserv: warning: current stop runlevel",
"insserv: warning: current start runlevel",
]
return line.rstrip() and all(i not in line.rstrip() for i in irrelevants)