mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Fix missing package check
`dpkg-query -W parted` exits with 0 even if it is not installed
This commit is contained in:
parent
a07e02cfcc
commit
1b5a1e0579
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class CheckPackages(Task):
|
|||
from subprocess import CalledProcessError
|
||||
for package in info.host_packages:
|
||||
try:
|
||||
log_check_call(['/usr/bin/dpkg-query', '-W', package])
|
||||
log_check_call(['/usr/bin/dpkg-query', '-s', package])
|
||||
except CalledProcessError:
|
||||
msg = "The package ``{0}\'\' is not installed".format(package)
|
||||
raise TaskError(msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue