From: Chris Lamb Date: Thu, 29 Oct 2009 13:43:00 +0000 (+0000) Subject: Test that we have Dinstall::LintianTags before we symlink anything X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=inline;h=6794769445e4dab2f87a87137190b17af739e0c7;p=dak.git Test that we have Dinstall::LintianTags before we symlink anything Signed-off-by: Chris Lamb --- diff --git a/daklib/queue.py b/daklib/queue.py index 1c3afffd..8ab693a8 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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()