diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-01-07 19:17:39 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-01-07 19:17:39 +0100 |
| commit | dbf6dd4e8d576eb8516b11e8d8861113bf4dfc52 (patch) | |
| tree | 7ec6b1acf6a49971bc07b27f4fc58fbea4d11fa5 /python/cache.cc | |
| parent | 7760b4a0ee334ff04a60086d06548d6bda6d55d9 (diff) | |
| download | python-apt-dbf6dd4e8d576eb8516b11e8d8861113bf4dfc52.tar.gz | |
update to latest ListUpdate()
Diffstat (limited to 'python/cache.cc')
| -rw-r--r-- | python/cache.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc index 2bbeb14a..36e49710 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -20,6 +20,7 @@ #include <apt-pkg/packagemanager.h> #include <apt-pkg/pkgsystem.h> #include <apt-pkg/sourcelist.h> +#include <apt-pkg/algorithms.h> #include <Python.h> #include "progress.h" @@ -86,7 +87,7 @@ static PyObject *PkgCacheUpdate(PyObject *Self,PyObject *Args) PyFetchProgress progress; progress.setCallbackInst(pyFetchProgressInst); pkgSourceList *source = GetCpp<pkgSourceList*>(pySourcesList); - bool res = Cache->ListUpdate(progress, *source); + bool res = ListUpdate(progress, *source); PyObject *PyRes = Py_BuildValue("b", res); return HandleErrors(PyRes); |
