]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/checks.py: fix index in format string
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 2 Dec 2012 22:21:44 +0000 (23:21 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 2 Dec 2012 22:21:44 +0000 (23:21 +0100)
daklib/checks.py

index 0607ab94c1d0646462a866d1ede1a5e93a5985de..3c22f390aa0ba393a67ba5089cd22223d2405d71 100644 (file)
@@ -668,7 +668,7 @@ class SuiteArchitectureCheck(Check):
         for arch in upload.changes.architectures:
             query = session.query(Architecture).filter_by(arch_string=arch).filter(Architecture.suites.contains(suite))
             if query.first() is None:
-                raise Reject('Architecture {0} is not allowed in suite {2}'.format(arch, suite.suite_name))
+                raise Reject('Architecture {0} is not allowed in suite {1}'.format(arch, suite.suite_name))
 
         return True