]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/checks.py: correct error message for hijacks
authorAnsgar Burchardt <ansgar@debian.org>
Wed, 29 May 2013 07:06:01 +0000 (09:06 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Wed, 29 May 2013 07:06:01 +0000 (09:06 +0200)
Return the binary package name for the error message and not the package
object.

daklib/checks.py

index f210d186e43318be8859e2f39658055d52506d12..5b4cafe35ccc93ef01159d4575136d8784b63f74 100644 (file)
@@ -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):