diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-04-17 14:10:22 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-04-17 14:10:22 +0200 |
| commit | 72b1f8e86e203df1d8bfef41c71d228ee21e9d99 (patch) | |
| tree | 2adcadfc266219d7837d67ef5adc425b0dc22c11 /python | |
| parent | 75bbd1c6284849c59fd6098edbc70db060bfb24a (diff) | |
| download | python-apt-72b1f8e86e203df1d8bfef41c71d228ee21e9d99.tar.gz | |
* python/cache.cc:
- ensure that pkgApplyStatus is called when the cache is opened
(thanks to Sebastian Heinlein for finding this bug), LP: #659438
Diffstat (limited to 'python')
| -rw-r--r-- | python/cache.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc index 191e2204..52ce32e3 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -197,12 +197,14 @@ static PyObject *PkgCacheOpen(PyObject *Self,PyObject *Args) return HandleErrors(); } + // ensure that the states are correct (LP: #659438) + pkgApplyStatus(*Cache); + //std::cout << "new cache is " << (pkgCache*)(*Cache) << std::endl; // update the cache pointer after the cache was rebuild ((CppPyObject<pkgCache*> *)Self)->Object = (pkgCache*)(*Cache); - Py_INCREF(Py_None); return HandleErrors(Py_None); } |
