]> git.decadent.org.uk Git - dak.git/commitdiff
Merge commit 'pkern/master'
authorJoerg Jaspert <joerg@debian.org>
Sun, 7 Sep 2008 21:55:06 +0000 (23:55 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 7 Sep 2008 21:55:06 +0000 (23:55 +0200)
* commit 'pkern/master':
  do not try to access non-existant members, fix up the last patch

Signed-off-by: Joerg Jaspert <joerg@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))