From: Ansgar Burchardt Date: Wed, 29 May 2013 07:06:01 +0000 (+0200) Subject: daklib/checks.py: correct error message for hijacks X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1297e2ed83ef4e15bff474e00e3f0ac14c689252;hp=c0027c3ec691bf336bd1e23214add413ac7ddcae;p=dak.git daklib/checks.py: correct error message for hijacks Return the binary package name for the error message and not the package object. --- diff --git a/daklib/checks.py b/daklib/checks.py index f210d186..5b4cafe3 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -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):