]> git.decadent.org.uk Git - dak.git/commitdiff
If lintian returns 2 warn FTPMasters but try and continue anyway.
authorChris Lamb <lamby@debian.org>
Wed, 28 Oct 2009 09:25:43 +0000 (09:25 +0000)
committerChris Lamb <lamby@debian.org>
Wed, 28 Oct 2009 09:25:43 +0000 (09:25 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index 41c573356088afa295d217759d8bb95fce9d6d58..c30aeb0566853c6de967416fe8049a1d9bd71936 100755 (executable)
@@ -1240,10 +1240,9 @@ class Upload(object):
         (result, output) = commands.getstatusoutput(command)
         # We are done with lintian, remove our tempfile
         os.unlink(temp_filename)
-        if (result != 0):
-            self.rejects.append("lintian failed for %s [return code: %s]." % (self.pkg.changes_file, result))
-            self.rejects.append(utils.prefix_multi_line_string(output, " [possible output:] "))
-            return
+        if (result == 2):
+            utils.warn("lintian failed for %s [return code: %s]." % (self.pkg.changes_file, result))
+            utils.warn(utils.prefix_multi_line_string(output, " [possible output:] "))
 
         if len(output) == 0:
             return