]> git.decadent.org.uk Git - dak.git/commitdiff
process-upload
authorLuca Falavigna <dktrkranz@debian.org>
Tue, 5 Jan 2010 21:32:46 +0000 (21:32 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Tue, 5 Jan 2010 21:32:46 +0000 (21:32 +0000)
Ensure source package is valid and can be extracted correctly
before trying to launch lintian checks on it

Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
dak/process_upload.py

index 0f50137c8cbe98e7c45b3b2f3145f80b28660af1..88f7cb58aaecf6834a2e026963141a1306067c75 100755 (executable)
@@ -394,8 +394,9 @@ def process_it(changes_file, session):
             valid_dsc_p = u.check_dsc(not Options["No-Action"])
             if valid_dsc_p and not Options["No-Action"]:
                 u.check_source()
-                u.check_lintian()
             u.check_hashes()
+            if valid_dsc_p and not len(u.rejects):
+                u.check_lintian()
             u.check_urgency()
             u.check_timestamps()
             u.check_signed_by_key()