summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-03-31 17:11:07 +0200
committerJulian Andres Klode <jak@debian.org>2010-03-31 17:11:07 +0200
commit0051fdbeff5e08248900cf0b8858178a3dceba7b (patch)
treea2fa77cf42d538889e9b54c94e49b15a97da147b /python
parent4584144d57d4fe0b857c8e4d79645ffafa44409c (diff)
downloadpython-apt-0051fdbeff5e08248900cf0b8858178a3dceba7b.tar.gz
* python/cache.cc:
- Check that 2nd argument to Cache.update() really is a SourceList object.
Diffstat (limited to 'python')
-rw-r--r--python/cache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc
index 3c9bc785..e2f26dbb 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;