fixes #569 apt module problems on old versions of apt-python (namely debian 5.0)
This commit is contained in:
parent
a1f93baa68
commit
f4414c0511
1 changed files with 2 additions and 2 deletions
4
apt
4
apt
|
@ -163,11 +163,11 @@ cache = apt.Cache()
|
|||
if default_release:
|
||||
apt_pkg.config['APT::Default-Release'] = default_release
|
||||
# reopen cache w/ modified config
|
||||
cache.open()
|
||||
cache.open(progress=None)
|
||||
|
||||
if update_cache == 'yes':
|
||||
cache.update()
|
||||
cache.open()
|
||||
cache.open(progress=None)
|
||||
if package == None:
|
||||
exit_json(changed=False)
|
||||
|
||||
|
|
Loading…
Reference in a new issue