From: Philipp Kern Date: Sun, 7 Sep 2008 21:54:20 +0000 (+0000) Subject: do not try to access non-existant members, fix up the last patch X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c4a3f2f19ee79c92164727f3b5a7c8fe980fab1e;p=dak.git do not try to access non-existant members, fix up the last patch Signed-off-by: Philipp Kern --- diff --git a/daklib/utils.py b/daklib/utils.py index 86e51a2f..7979344d 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -394,11 +394,12 @@ def parse_checksums(where, files, manifest, hashname): if not line: break hash, size, file = line.strip().split(' ') + if not files.has_key(file): # TODO: check for the file's entry in the original files dict, not # the one modified by (auto)byhand and other weird stuff - #if not files.has_key(file): # rejmsg.append("%s: not present in files but in checksums-%s in %s" % # (file, hashname, where)) + continue if not files[file]["size"] == size: rejmsg.append("%s: size differs for files and checksums-%s entry "\ "in %s" % (file, hashname, where))