summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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