diff options
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py index 50a896e6..83f0bd3d 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -103,6 +103,12 @@ class Cache(object): self._depcache.Upgrade(distUpgrade) self.cachePostChange() + def update(self, fetchProgress=None, opProgress=None): + if(opProgress != None): + self._cache.Update(fetchProgress, opProgress); + else: + self._cache.Update(fetchProgress); + def commit(self, fprogress, iprogress): """ Apply the marked changes to the cache """ self._depcache.Commit(fprogress, iprogress) |
