summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-03-31 22:14:52 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-03-31 22:14:52 +0200
commit01ae32fec88cc63623874752f79b052fbb2cf028 (patch)
tree691ce7320e5fb9d9eb268423bd90b46f3a7e4749 /python/cache.cc
parent82dc1170b0b29f7bb264d046d1c9253f4d97fb10 (diff)
parent0051fdbeff5e08248900cf0b8858178a3dceba7b (diff)
downloadpython-apt-01ae32fec88cc63623874752f79b052fbb2cf028.tar.gz
merged from http://bzr.debian.org/apt/python-apt/debian-sid/
Diffstat (limited to 'python/cache.cc')
-rw-r--r--python/cache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc
index ba620099..87902b1e 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -90,7 +90,8 @@ static PyObject *PkgCacheUpdate(PyObject *Self,PyObject *Args)
PyObject *pyFetchProgressInst = 0;
PyObject *pySourcesList = 0;
int pulseInterval = 0;
- if (PyArg_ParseTuple(Args, "OO|i", &pyFetchProgressInst,&pySourcesList, &pulseInterval) == 0)
+ if (PyArg_ParseTuple(Args, "OO!|i", &pyFetchProgressInst,
+ &PySourceList_Type, &pySourcesList, &pulseInterval) == 0)
return 0;
PyFetchProgress progress;