diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-08-21 16:55:11 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-08-21 16:55:11 +0200 |
| commit | dea3fad6d30e85f184d34e80490ad24ac89a9438 (patch) | |
| tree | cc437e0777a88423199bcd15ac464e400b35ffe8 /python/cache.cc | |
| parent | e3c630140e6595126046866a40e11e90c74278f2 (diff) | |
| parent | 63ea10b9f81725c9304aa729de4a3768a28b4c81 (diff) | |
| download | python-apt-dea3fad6d30e85f184d34e80490ad24ac89a9438.tar.gz | |
Merge 0.7.13.0 from unstable.
Diffstat (limited to 'python/cache.cc')
| -rw-r--r-- | python/cache.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/cache.cc b/python/cache.cc index 593bc1c2..084f6d8c 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -78,13 +78,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); |
