mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
tools_upgrade: filter more boring apt messages
This commit is contained in:
parent
0973301b0f
commit
3cc1a0a59d
1 changed files with 11 additions and 1 deletions
|
@ -571,8 +571,18 @@ def tools_upgrade(
|
|||
irrelevants = [
|
||||
"service sudo-ldap already provided",
|
||||
"Reading database ...",
|
||||
"Preparing to unpack",
|
||||
"Selecting previously unselected package",
|
||||
"Created symlink /etc/systemd",
|
||||
"Replacing config file",
|
||||
"Creating config file",
|
||||
"Installing new version of config file",
|
||||
"Installing new config file as you requested",
|
||||
", does not exist on system.",
|
||||
"unable to delete old directory",
|
||||
"update-alternatives:",
|
||||
]
|
||||
return all(i not in line.rstrip() for i in irrelevants)
|
||||
return line.rstrip() and all(i not in line.rstrip() for i in irrelevants)
|
||||
|
||||
callbacks = (
|
||||
lambda l: logger.info("+ " + l.rstrip() + "\r")
|
||||
|
|
Loading…
Add table
Reference in a new issue