diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-03-27 13:34:53 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-03-27 13:34:53 +0200 |
| commit | 70b2ec97104fca2c69d5fb70bac37737bc420cf4 (patch) | |
| tree | 2d3421e7ff607caf944f2c1cf7d115ade008a7b7 /apt | |
| parent | 6efd88826d1069bf25c43e5bf14ad43bc459c3c7 (diff) | |
| parent | 67426cd59b0b546f447827f538a19cccb75a3efe (diff) | |
| download | python-apt-70b2ec97104fca2c69d5fb70bac37737bc420cf4.tar.gz | |
merged from http://bzr.debian.org/bzr/apt/python-apt/debian-sid
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
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. |
