]> err.no Git - dak/commitdiff
Only lintian reject uploads to unstable or experimental
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 20:17:52 +0000 (20:17 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 20:17:52 +0000 (20:17 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index e43ffaf819d06223f7ee767295e047ceb1fe62de..2a3db36796d642692a7d0c8d859a9d5adad45604 100755 (executable)
@@ -1209,6 +1209,16 @@ class Upload(object):
 
     ###########################################################################
     def check_lintian(self):
+        # Only check some distributions
+        valid_dist = False
+        for dist in ('unstable', 'experimental'):
+            if dist in self.pkg.changes['distribution']:
+                valid_dist = True
+                break
+
+        if not valid_dist:
+            return
+
         cnf = Config()
         tagfile = cnf("Dinstall::LintianTags")
         # Parse the yaml file