From ee7b1ef76f58e8dd3a744af98007c4ab8b5ab6d2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 19 Aug 2009 16:39:57 +0200 Subject: * apt/cache.py, python/cache.cc: - add optional pulseIntevall option to "update()" * po/python-apt.pot: - refreshed --- python/cache.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/cache.cc b/python/cache.cc index c7e5e76e..f0da8511 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -81,13 +81,14 @@ static PyObject *PkgCacheUpdate(PyObject *Self,PyObject *Args) PyObject *pyFetchProgressInst = 0; PyObject *pySourcesList = 0; - if (PyArg_ParseTuple(Args, "OO", &pyFetchProgressInst,&pySourcesList) == 0) + int pulseInterval = 5000; + if (PyArg_ParseTuple(Args, "OO|i", &pyFetchProgressInst,&pySourcesList, &pulseInterval) == 0) return 0; PyFetchProgress progress; progress.setCallbackInst(pyFetchProgressInst); pkgSourceList *source = GetCpp(pySourcesList); - bool res = ListUpdate(progress, *source); + bool res = ListUpdate(progress, *source, pulseInterval); PyObject *PyRes = Py_BuildValue("b", res); return HandleErrors(PyRes); -- cgit v1.2.3 From e62fd3c67202426ae1b91a48848e89e025a9b924 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 21 Aug 2009 16:01:12 +0200 Subject: python/cache.cc: Set default pulseInterval to 0 (matches apt-pkg's default). --- python/cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/cache.cc b/python/cache.cc index f0da8511..a88490bd 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -81,7 +81,7 @@ static PyObject *PkgCacheUpdate(PyObject *Self,PyObject *Args) PyObject *pyFetchProgressInst = 0; PyObject *pySourcesList = 0; - int pulseInterval = 5000; + int pulseInterval = 0; if (PyArg_ParseTuple(Args, "OO|i", &pyFetchProgressInst,&pySourcesList, &pulseInterval) == 0) return 0; -- cgit v1.2.3 From 93a8e31689be30b48ededcd9de67bdd2daa454dd Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 21 Aug 2009 16:18:21 +0200 Subject: python/pkgsrcrecords.cc: Fix spelling error (begining should be beginning). --- debian/changelog | 4 +++- python/pkgsrcrecords.cc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/debian/changelog b/debian/changelog index 71d19e14..c9b1c0fb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -18,13 +18,15 @@ python-apt (0.7.13.0) UNRELEASED; urgency=low - Add Package.is_now_broken and Package.is_inst_broken. * apt/cache.py: - Introduce ProblemResolver class (Closes: #542705) + * python/pkgsrcrecords.cc: + - Fix spelling error (begining should be beginning). * po: - Update template and the translations de.po, fr.po (Closes: #467120), ja.po (Closes: #454293). * debian/control: - Update Standards-Version to 3.8.3. - -- Julian Andres Klode Fri, 21 Aug 2009 16:12:31 +0200 + -- Julian Andres Klode Fri, 21 Aug 2009 16:17:01 +0200 python-apt (0.7.12.1) unstable; urgency=low diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc index f7f5d7a2..36493e7b 100644 --- a/python/pkgsrcrecords.cc +++ b/python/pkgsrcrecords.cc @@ -53,7 +53,7 @@ static PyObject *PkgSrcRecordsLookup(PyObject *Self,PyObject *Args) return Py_BuildValue("i", 1); } -static char *doc_PkgSrcRecordsRestart = "Start Lookup from the begining"; +static char *doc_PkgSrcRecordsRestart = "Start Lookup from the beginning"; static PyObject *PkgSrcRecordsRestart(PyObject *Self,PyObject *Args) { PkgSrcRecordsStruct &Struct = GetCpp(Self); -- cgit v1.2.3