diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-03-31 17:11:07 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-03-31 17:11:07 +0200 |
| commit | 0051fdbeff5e08248900cf0b8858178a3dceba7b (patch) | |
| tree | a2fa77cf42d538889e9b54c94e49b15a97da147b | |
| parent | 4584144d57d4fe0b857c8e4d79645ffafa44409c (diff) | |
| download | python-apt-0051fdbeff5e08248900cf0b8858178a3dceba7b.tar.gz | |
* python/cache.cc:
- Check that 2nd argument to Cache.update() really is a SourceList object.
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | python/cache.cc | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 5d287831..b66f108e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ python-apt (0.7.94.3) UNRELEASED; urgency=low * apt/package.py: - Decode using utf-8 in installed_files (LP: #407953). - Fix fetch_source() to work when source name = binary name (LP: #552400). + * python/cache.cc: + - Check that 2nd argument to Cache.update() really is a SourceList object. * python/generic.cc: - Fix a memory leak when using old attribute names. - Map ArchiveURI property to archive_uri 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; |
