diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-02-14 11:34:23 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-02-14 11:34:23 +0100 |
| commit | 706ef80cbb054b1750358f8a3866cd9d6f9e6929 (patch) | |
| tree | 350bf9f564e5ba888e3cfb1041fc21049d56d504 /python/sourcelist.cc | |
| parent | 2f737cb5beecce2ee4341ebdac113aa9fd17f97d (diff) | |
| download | python-apt-706ef80cbb054b1750358f8a3866cd9d6f9e6929.tar.gz | |
* python/sourcelist.cc:
- support GetIndexes() GetAll argument to implement
something like --print-uris
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)); } |
