From d37863d6d08a02b484577f7a6a67f163cc2f2902 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 5 Mar 2012 13:05:39 +0100 Subject: python/apt_pkgmodule.cc: Fix apt_pkg.Dependency.TYPE_RECOMMENDS, had Suggests value previously --- debian/changelog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/changelog') diff --git a/debian/changelog b/debian/changelog index a585bbb4..b193ed71 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ python-apt (0.8.4) UNRELEASED; urgency=low + [ Michael Vogt ] * doc/examples/build-deps.py: - update the build-deps.py example to use the apt API more * add support for apt_pkg.Policy.get_priority(PkgFileIterator) @@ -14,6 +15,10 @@ python-apt (0.8.4) UNRELEASED; urgency=low - add support a filename argument in apt_pkg.TagFile() (in addition to the file object currently supported) + [Julian Andres Klode ] + * python/apt_pkgmodule.cc: + - Fix apt_pkg.Dependency.TYPE_RECOMMENDS, had Suggests value previously + -- Michael Vogt Wed, 04 Jan 2012 12:07:48 +0100 python-apt (0.8.3.1) UNRELEASED; urgency=low -- cgit v1.2.3 From da171aa93337802c19d8caa99a4ab8516bdbc5bd Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 27 Mar 2012 11:21:20 +0200 Subject: * apt/package.py: - if there is no Version.uri return None --- apt/package.py | 5 ++++- debian/changelog | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'debian/changelog') diff --git a/apt/package.py b/apt/package.py index 73f68c87..29eec909 100644 --- a/apt/package.py +++ b/apt/package.py @@ -545,7 +545,10 @@ class Version(object): .. versionadded:: 0.7.10 """ - return iter(self._uris()).next() + try: + return iter(self._uris()).next() + except StopIteration: + return None def fetch_binary(self, destdir='', progress=None): """Fetch the binary version of the package. diff --git a/debian/changelog b/debian/changelog index 5813656a..b1bf28d6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,8 @@ python-apt (0.8.4) UNRELEASED; urgency=low * python/tag.cc, tests/test_tagfile.py: - add support a filename argument in apt_pkg.TagFile() (in addition to the file object currently supported) + * apt/package.py: + - if there is no Version.uri return None -- Michael Vogt Wed, 04 Jan 2012 12:07:48 +0100 -- cgit v1.2.3