[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] checks: Set the source in HashesCheck correctly

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daklib/checks.py b/daklib/checks.py
index 8111ef7..38975e1 100644
--- a/daklib/checks.py
+++ b/daklib/checks.py
@@ -162,7 +162,7 @@ class HashesCheck(Check):
         changes = upload.changes
         for f in changes.files.itervalues():
-            source = changes.source
+        source = changes.source
         if source is not None:
             for f in source.files.itervalues():

Reply to: