1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixes #569 apt module problems on old versions of apt-python (namely debian 5.0)

This commit is contained in:
Derek Carter 2012-07-10 19:28:14 -04:00
parent 3235da074e
commit e261d49acc

View file

@ -163,11 +163,11 @@ cache = apt.Cache()
if default_release: if default_release:
apt_pkg.config['APT::Default-Release'] = default_release apt_pkg.config['APT::Default-Release'] = default_release
# reopen cache w/ modified config # reopen cache w/ modified config
cache.open() cache.open(progress=None)
if update_cache == 'yes': if update_cache == 'yes':
cache.update() cache.update()
cache.open() cache.open(progress=None)
if package == None: if package == None:
exit_json(changed=False) exit_json(changed=False)