From 30505be641ba127ef66b84619fc8a7dc9d7350f2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 10 Aug 2010 11:07:06 +0200 Subject: * python/acquire.cc: - return long long when calling TotalNeeded(), FetchNeeded() and PartialPresent() from pkgAcquire(). This follows the change in libapt. --- python/acquire.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/acquire.cc b/python/acquire.cc index 6f9a1412..ab90bbdd 100644 --- a/python/acquire.cc +++ b/python/acquire.cc @@ -259,15 +259,15 @@ static PyMethodDef PkgAcquireMethods[] = { #define fetcher (GetCpp(Self)) static PyObject *PkgAcquireGetTotalNeeded(PyObject *Self,void*) { - return Py_BuildValue("d", fetcher->TotalNeeded()); + return Py_BuildValue("L", fetcher->TotalNeeded()); } static PyObject *PkgAcquireGetFetchNeeded(PyObject *Self,void*) { - return Py_BuildValue("d", fetcher->FetchNeeded()); + return Py_BuildValue("L", fetcher->FetchNeeded()); } static PyObject *PkgAcquireGetPartialPresent(PyObject *Self,void*) { - return Py_BuildValue("d", fetcher->PartialPresent()); + return Py_BuildValue("L", fetcher->PartialPresent()); } #undef fetcher -- cgit v1.2.3 From 1ce91d4909f2678430715163a76e9416ddb8a616 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 27 Aug 2010 14:33:55 +0200 Subject: python/cache.cc: doc update for provides_list --- python/cache.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/cache.cc b/python/cache.cc index e31f6a65..b153d1f2 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -573,9 +573,8 @@ static PyGetSetDef PackageGetSet[] = { {"rev_depends_list",PackageGetRevDependsList,0, "An apt_pkg.DependencyList object of all reverse dependencies."}, {"provides_list",PackageGetProvidesList,0, - "A list of all packages providing this package. The list contains\n" - "tuples in the format (providesname, providesver, version)\n" - "where 'version' is an apt_pkg.Version object."}, + "Ignore it, it does nothing. You want to use\n" + "apt_pkg.Version.provides_list instead."}, {"selected_state",PackageGetSelectedState,0, "The state of the selection, which can be compared against the constants\n" "SELSTATE_DEINSTALL, SELSTATE_HOLD, SELSTATE_INSTALL, SELSTATE_PURGE,\n" -- cgit v1.2.3 From 6d564eafe80ebe60c91587dd1bb70a666b70485d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 27 Aug 2010 15:01:44 +0200 Subject: python/cache.cc: improve documentation --- 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 b153d1f2..e87d73d4 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -978,8 +978,9 @@ static PyGetSetDef VersionGetSet[] = { {"priority_str",VersionGetPriorityStr,0, "The priority of the package, as a string."}, {"provides_list",VersionGetProvidesList,0, - "A list of all packages provided by this version. See\n" - "Package.provides_list for a description of the format."}, + "A list of all packages provided by this version. The list contains\n" + "tuples in the format (providesname, providesver, version)\n" + "where 'version' is an apt_pkg.Version object."}, {"section",VersionGetSection,0, "The section of this package version."}, {"size",VersionGetSize,0, -- cgit v1.2.3