daklib/checks.py: correct error message for hijacks

Return the binary package name for the error message and not the package
object.
上级 c0027c3e
......@@ -443,7 +443,7 @@ class ACLCheck(Check):
.filter(DBBinary.package == binary_name)
for binary in binaries:
if binary.source.source != upload.changes.changes['Source']:
return True, binary, binary.source.source
return True, binary.package, binary.source.source
return False, None, None
def _check_acl(self, session, upload, acl):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册