]> git.decadent.org.uk Git - dak.git/commitdiff
Return all the lintian-related rejections, not just the first one.
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 19:41:13 +0000 (19:41 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 19:45:02 +0000 (19:45 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index bf2cf4189037d7b9b0623a81487a136b18545fdc..a64df472d25a1d710f2ac9929892832be2ff697c 100755 (executable)
@@ -1268,19 +1268,16 @@ class Upload(object):
                     # We know it and it is overriden. Check that override is allowed.
                     if lintiantags['warning'][etag]:
                         # The tag is overriden, and it is allowed to be overriden.
-                        # Continue as if it isnt there.
-                        continue
+                        # Don't add a reject message.
                     elif lintiantags['error'][etag]:
                         # The tag is overriden - but is not allowed to be
                         self.rejects.append("%s: Overriden tag %s found, but this tag may not be overwritten." % (epackage, etag))
-                        return
                 else:
                     # Tag is known, it is not overriden, direct reject.
                     self.rejects.append("%s: Found lintian output: '%s %s', automatically rejected package." % (epackage, etag, etext))
                     # Now tell if they *might* override it.
                     if lintiantags['wayout'][etag]:
                         self.rejects.append("%s: If you have a good reason, you may override this lintian tag. Laziness to fix your crap is NOT A GOOD REASON, sod off" % (epackage))
-                    return
 
     ###########################################################################
     def check_urgency(self):