]> err.no Git - dak/commitdiff
lintian YAML has a "lintian" root element.
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 19:52:54 +0000 (19:52 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 20:01:31 +0000 (20:01 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index 2d371e8d8b77deecd6a47f5202b6dadefe2ea596..35b85a7de7c61a3d044bf3c59303eddd19682c08 100755 (executable)
@@ -1216,7 +1216,7 @@ class Upload(object):
         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