[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 15/16] Only lintian reject uploads to unstable or experimental



Signed-off-by: Chris Lamb <lamby@debian.org>
---
 daklib/queue.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/daklib/queue.py b/daklib/queue.py
index e43ffaf..2a3db36 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -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
-- 
1.6.3.3



Reply to: