diff options
| author | Michael Vogt <egon@bottom> | 2008-02-19 19:26:32 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@bottom> | 2008-02-19 19:26:32 +0100 |
| commit | 5c84be897a08247a5146cccbac7134cadfb43310 (patch) | |
| tree | ccffceb503eaa2d926cc75171dd3723a4a1de462 /python/sourcelist.cc | |
| parent | 4d46ff50f061c4742713e906430d73fdc927b250 (diff) | |
| parent | 1bf52388c98e72768b8f883726ee7e2e2992e4ff (diff) | |
| download | python-apt-5c84be897a08247a5146cccbac7134cadfb43310.tar.gz | |
* use the new CacheFile::ListUpdate() code
* add example in doc/examples/update.py
* python/pkgrecords.cc:
- export the Homepage field
* python/tar.cc:
- fix .lzma extraction (thanks to bigjools)
* python/sourcelist.cc:
- support GetIndexes() GetAll argument to implement
something like --print-uris
* python/apt_pkgmodule.cc:
- add InstState{Ok,ReInstReq,Hold,HoldReInstReq} constants
* apt/cache.py:
- add reqReinstallPkgs property that lists all packages in
ReInstReq or HoldReInstReq
Diffstat (limited to 'python/sourcelist.cc')
| -rw-r--r-- | python/sourcelist.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/sourcelist.cc b/python/sourcelist.cc index 68b764f8..76df015d 100644 --- a/python/sourcelist.cc +++ b/python/sourcelist.cc @@ -60,12 +60,12 @@ static PyObject *PkgSourceListGetIndexes(PyObject *Self,PyObject *Args) pkgSourceList *list = GetCpp<pkgSourceList*>(Self); PyObject *pyFetcher; - - if (PyArg_ParseTuple(Args, "O!",&PkgAcquireType,&pyFetcher) == 0) + char all = 0; + if (PyArg_ParseTuple(Args, "O!|b",&PkgAcquireType,&pyFetcher, &all) == 0) return 0; pkgAcquire *fetcher = GetCpp<pkgAcquire*>(pyFetcher); - bool res = list->GetIndexes(fetcher); + bool res = list->GetIndexes(fetcher, all); return HandleErrors(Py_BuildValue("b",res)); } |
