From: Gergely Nagy Date: Mon, 17 Sep 2012 08:50:34 +0000 (+0000) Subject: checks: Set the source in HashesCheck correctly X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=b5cec8607be6c43e922dcf37d1a12efa806131e0;p=dak.git 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 --- diff --git a/daklib/checks.py b/daklib/checks.py index 8111ef75..38975e1e 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(): 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)