Skip to content

Commit

Permalink
Reopen the sources before updating
Browse files Browse the repository at this point in the history
  • Loading branch information
pazdera committed Mar 20, 2015
1 parent d0a2f9e commit 3acc937
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kano_updater/apt_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def is_update_avaliable(self):
return False

def clear_cache(self):
self._cache.open()
self._cache.clear()
self._cache.open()

def fix_broken(self, progress):
progress.split(
Expand Down
1 change: 1 addition & 0 deletions kano_updater/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def migrate_repository(apt_file, old_repo, new_repo):
return

# TODO: track progress of this
apt_handle.clear_cache()
apt_handle.update(DummyProgress())


Expand Down

0 comments on commit 3acc937

Please sign in to comment.