]> err.no Git - dak/commitdiff
checks: Set the source in HashesCheck correctly
authorGergely Nagy <algernon@madhouse-project.org>
Mon, 17 Sep 2012 08:50:34 +0000 (08:50 +0000)
committerGergely Nagy <algernon@madhouse-project.org>
Mon, 17 Sep 2012 08:53:37 +0000 (08:53 +0000)
Instead of setting the source within a for loop, set it outside, so it
does what it is supposed to do, instead of accidentally working
because self has a source field set too.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
daklib/checks.py

index 8111ef7555e1198729a7f7cf1fbda4b009245f78..38975e1eb542ba51b4dfa3d43c94e45c10f72f33 100644 (file)
@@ -162,7 +162,7 @@ class HashesCheck(Check):
         changes = upload.changes
         for f in changes.files.itervalues():
             f.check(upload.directory)
-            source = changes.source
+        source = changes.source
         if source is not None:
             for f in source.files.itervalues():
                 f.check(upload.directory)