mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Also run dpkg --audit to check if dpkg is in a broken state
This commit is contained in:
parent
4d734a27a0
commit
09d8500fda
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ def ynh_packages_version(*args, **kwargs):
|
|||
|
||||
|
||||
def dpkg_is_broken():
|
||||
if check_output("dpkg --audit").strip() != "":
|
||||
return True
|
||||
# If dpkg is broken, /var/lib/dpkg/updates
|
||||
# will contains files like 0001, 0002, ...
|
||||
# ref: https://sources.debian.org/src/apt/1.4.9/apt-pkg/deb/debsystem.cc/#L141-L174
|
||||
|
|
Loading…
Add table
Reference in a new issue