diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-04 16:15:36 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-04 16:15:36 +0000 |
| commit | 22b6039107124d9e2fb9f3185d1663fac482f25e (patch) | |
| tree | e7820e51df0b152d1e750b377b8fd2cc85405523 /apt/cache.py | |
| parent | ad3b844320f099f40c475f39579a9baf578785c6 (diff) | |
| download | python-apt-22b6039107124d9e2fb9f3185d1663fac482f25e.tar.gz | |
* downloads can be canceld now (in FetchProgress::Pulse)
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) |
