summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-08-21 15:42:08 +0200
committerJulian Andres Klode <jak@debian.org>2009-08-21 15:42:08 +0200
commit1eac1b0ebdbbe46bc86d692ed5c94b841b605bd6 (patch)
tree41f6999ef65bf92a426400c18911482a3df37359 /apt
parent1783164e02154a748a225efa51d22205b7d75261 (diff)
parentee7b1ef76f58e8dd3a744af98007c4ab8b5ab6d2 (diff)
downloadpython-apt-1eac1b0ebdbbe46bc86d692ed5c94b841b605bd6.tar.gz
apt/cache.py, python/cache.cc: add optional pulseInterval option to "update()".
Diffstat (limited to 'apt')
-rw-r--r--apt/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/cache.py b/apt/cache.py
index bc1d1160..756f9ba9 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -269,7 +269,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)
@@ -279,7 +279,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)