summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-08-24 13:36:38 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-08-24 13:36:38 +0200
commiteb48d80c9a845bbb687790331c0a7c71a3365973 (patch)
treea40401cbbb2242d8982ff1a56dffe412c61b778b /python/cache.cc
parent543bd48fbc582b2ef663cd8bcd387a11939e78b4 (diff)
parent353d2494c234d87cb63affd07a927d1030fa9721 (diff)
downloadpython-apt-eb48d80c9a845bbb687790331c0a7c71a3365973.tar.gz
merged from debian-sid
Diffstat (limited to 'python/cache.cc')
-rw-r--r--python/cache.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/cache.cc b/python/cache.cc
index c7e5e76e..a88490bd 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -81,13 +81,14 @@ static PyObject *PkgCacheUpdate(PyObject *Self,PyObject *Args)
PyObject *pyFetchProgressInst = 0;
PyObject *pySourcesList = 0;
- if (PyArg_ParseTuple(Args, "OO", &pyFetchProgressInst,&pySourcesList) == 0)
+ int pulseInterval = 0;
+ if (PyArg_ParseTuple(Args, "OO|i", &pyFetchProgressInst,&pySourcesList, &pulseInterval) == 0)
return 0;
PyFetchProgress progress;
progress.setCallbackInst(pyFetchProgressInst);
pkgSourceList *source = GetCpp<pkgSourceList*>(pySourcesList);
- bool res = ListUpdate(progress, *source);
+ bool res = ListUpdate(progress, *source, pulseInterval);
PyObject *PyRes = Py_BuildValue("b", res);
return HandleErrors(PyRes);