]> git.decadent.org.uk Git - dak.git/commitdiff
Test that we have Dinstall::LintianTags before we symlink anything
authorChris Lamb <lamby@debian.org>
Thu, 29 Oct 2009 13:43:00 +0000 (13:43 +0000)
committerChris Lamb <lamby@debian.org>
Thu, 29 Oct 2009 13:43:00 +0000 (13:43 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index 1c3afffda9b571d22f2a16a330300f955204387b..8ab693a86e89bbe72c30916ace7916687c01ca75 100755 (executable)
@@ -1209,6 +1209,11 @@ class Upload(object):
         if not valid_dist:
             return
 
+        tagfile = cnf.get("Dinstall::LintianTags")
+        if tagfile is None:
+            # We don't have a tagfile, so just don't do anything.
+            return
+
         # Try and find all orig mentioned in the .dsc
         target_dir = '.'
         symlinked = []
@@ -1276,10 +1281,6 @@ class Upload(object):
                 if symlink_if_valid(queuefile_path):
                     break
 
-        tagfile = cnf.get("Dinstall::LintianTags")
-        if tagfile is None:
-            # We don't have a tagfile, so just don't do anything.
-            return
         # Parse the yaml file
         sourcefile = file(tagfile, 'r')
         sourcecontent = sourcefile.read()