]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/queue.py
lintian YAML has a "lintian" root element.
[dak.git] / daklib / queue.py
index cdf366f8754cee004e06d92662c533372757f073..35b85a7de7c61a3d044bf3c59303eddd19682c08 100755 (executable)
@@ -1214,8 +1214,9 @@ class Upload(object):
         # Parse the yaml file
         sourcefile = file(tagfile, 'r')
         sourcecontent = sourcefile.read()
+        sourcefile.close()
         try:
-            lintiantags = yaml.load(sourcecontent)
+            lintiantags = yaml.load(sourcecontent)['lintian']
         except yaml.YAMLError, msg:
             utils.fubar("Can not read the lintian tags file %s, YAML error: %s." % (tagfile, msg))
             return