dpkg-query only on bind9 package

This commit is contained in:
Krzysztof Klimonda
2012-04-17 01:07:27 +02:00
parent bbb86e36aa
commit c30394fd8e

View File

@@ -30,7 +30,7 @@ def bind_check_installation(unattended):
if not has_bind: if not has_bind:
return False return False
dpkg_query = ['/usr/bin/dpkg-query', '-W', '-f', '${Conffiles}'] dpkg_query = ['/usr/bin/dpkg-query', '-W', '-f', '${Conffiles}', 'bind9']
stdout, stderr, ret = ipautil.run(dpkg_query) stdout, stderr, ret = ipautil.run(dpkg_query)
# convert dpkg-query output into a mapping fname->md5sum # convert dpkg-query output into a mapping fname->md5sum
conf_files = dict([p.strip().split(' ') for p in stdout.split('\n')]) conf_files = dict([p.strip().split(' ') for p in stdout.split('\n')])