diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-08-19 16:39:57 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-08-19 16:39:57 +0200 |
| commit | ee7b1ef76f58e8dd3a744af98007c4ab8b5ab6d2 (patch) | |
| tree | ac6b1716b26be9d0884d3577d0809a3e1a947592 /apt/cache.py | |
| parent | 3774f875be6bbe97b98032b72f3933ed151b35a8 (diff) | |
| download | python-apt-ee7b1ef76f58e8dd3a744af98007c4ab8b5ab6d2.tar.gz | |
* apt/cache.py, python/cache.cc:
- add optional pulseIntevall option to "update()"
* po/python-apt.pot:
- refreshed
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/cache.py b/apt/cache.py index c1e2428c..bb396d59 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -270,7 +270,7 @@ class Cache(object): providers.append(pkg) return providers - def update(self, fetchProgress=None): + def update(self, fetchProgress=None, pulseInterval=0): " run the equivalent of apt-get update " lockfile = apt_pkg.Config.FindDir("Dir::State::Lists") + "lock" lock = apt_pkg.GetLock(lockfile) @@ -280,7 +280,7 @@ class Cache(object): try: if fetchProgress is None: fetchProgress = apt.progress.FetchProgress() - return self._cache.Update(fetchProgress, self._list) + return self._cache.Update(fetchProgress, self._list, pulseInterval) finally: os.close(lock) |
