summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-06-14 12:14:39 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-06-14 12:14:39 +0200
commitda5b9bcdf772358322d4e05a46cf6eb843d9afaa (patch)
treea3d11a935373265a8829494b7792654dfdf90e3a /tests
parent88889f46c025f759836edaf7396c45d7416e0a59 (diff)
parent204ba672314d9ed07ca76770a32a6af5fbd67c25 (diff)
downloadpython-apt-da5b9bcdf772358322d4e05a46cf6eb843d9afaa.tar.gz
* merged from debian/unstable
* Remaining changes: - data/templates/Ubuntu.info: gutsy repository information - set Maintainer field to ubuntu * build against the new apt * support for new "aptsources" pythn module (thanks to Sebastian Heinlein) * merged support for translated package descriptions * merged support for automatic removal of unused dependencies * merged http://glatzor.de/bzr/python-apt/sebi: - this means that the new aptsources modules is available * support translated pacakge descriptions * support automatic dependency information * python/apt_pkgmodule.cc: - added pkgCache::State::PkgCurrentState enums * python/pkgrecords.cc: - added SourceVer
Diffstat (limited to 'tests')
-rw-r--r--tests/pkgrecords.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pkgrecords.py b/tests/pkgrecords.py
index 8bfe4b82..d0616d29 100644
--- a/tests/pkgrecords.py
+++ b/tests/pkgrecords.py
@@ -21,6 +21,8 @@ def main():
#print "no available version, cruft"
continue
version = depcache.GetCandidateVer(pkg)
+ if not version:
+ continue
file, index = version.FileList.pop(0)
if records.Lookup((file,index)):
#print records.FileName