diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-10-23 19:27:10 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-10-23 19:27:10 +0200 |
| commit | 0d616ec4ef49064412b27275dbbb1cb04b546fb5 (patch) | |
| tree | 1863e5920669e737632f871a4229cbc3d0369c6d /python/cache.cc | |
| parent | 0033e9b728a553bff0caa81d4c500532d5ba9ca1 (diff) | |
| download | python-apt-0d616ec4ef49064412b27275dbbb1cb04b546fb5.tar.gz | |
python/*.cc: Get rid of the easy-to-replace deprecated APT functions
We cannot get rid of the InstallProtect and StrToTime calls for backwards
compatibility, but let's drop the others.
Diffstat (limited to 'python/cache.cc')
| -rw-r--r-- | python/cache.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/cache.cc b/python/cache.cc index 40782838..2fa556e1 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -329,7 +329,7 @@ static PyObject *PkgCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) if (pyCallbackInst == Py_None) { OpProgress Prog; - if (Cache->Open(Prog,false) == false) + if (Cache->Open(&Prog,false) == false) return HandleErrors(); } else if(pyCallbackInst != 0) { // sanity check for the progress object, see #497049 @@ -345,12 +345,12 @@ static PyObject *PkgCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) } PyOpProgress progress; progress.setCallbackInst(pyCallbackInst); - if (Cache->Open(progress,false) == false) + if (Cache->Open(&progress,false) == false) return HandleErrors(); } else { OpTextProgress Prog; - if (Cache->Open(Prog,false) == false) + if (Cache->Open(&Prog,false) == false) return HandleErrors(); } |
