]> git.decadent.org.uk Git - dak.git/commitdiff
do not try to access non-existant members, fix up the last patch
authorPhilipp Kern <pkern@debian.org>
Sun, 7 Sep 2008 21:54:20 +0000 (21:54 +0000)
committerPhilipp Kern <pkern@debian.org>
Sun, 7 Sep 2008 21:54:20 +0000 (21:54 +0000)
Signed-off-by: Philipp Kern <pkern@debian.org>
daklib/utils.py

index 86e51a2f5c852f5b8c53b42741db14fcb96265ef..7979344dd3271be2f31ecebbf87ce2768be552e7 100755 (executable)
@@ -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))