]> git.donarmstrong.com Git - dak.git/commit
parse_file_list: handle files without an entry in the Files field
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 7 Mar 2013 06:17:27 +0000 (07:17 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 7 Mar 2013 06:22:30 +0000 (07:22 +0100)
commit5b73e91da92d1a329e996cb7591b365c30abe750
tree5d8dde8e1884fa05f19239207d95b34854e0eab8
parentf82de9f5e2c603f4443af5a663c3649350a18e43
parse_file_list: handle files without an entry in the Files field

If a file is only listed in the Checksums-* fields, "entry" will be None and we
cannot call the get method to compare the size in the different fields.

This change just skips the comparison when "entry" is None. We can do this as
we later check that each entry has all required checksums (i.e. is listed in
Files and the Checksums-* fields).
daklib/upload.py