提交 b5cec860 编写于 作者: G Gergely Nagy

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: NGergely Nagy <algernon@madhouse-project.org>
上级 7163dc55
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册