From c4a3f2f19ee79c92164727f3b5a7c8fe980fab1e Mon Sep 17 00:00:00 2001 From: Philipp Kern Date: Sun, 7 Sep 2008 21:54:20 +0000 Subject: [PATCH] do not try to access non-existant members, fix up the last patch Signed-off-by: Philipp Kern --- daklib/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.39.5