X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=daklib%2Fqueue.py;h=35b85a7de7c61a3d044bf3c59303eddd19682c08;hb=ce324ffde27b192a8e713b6e98368a3b00edaf27;hp=cdf366f8754cee004e06d92662c533372757f073;hpb=c7dd32e4a2798d89f1930baa0ea7e24a580b1e88;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index cdf366f8..35b85a7d 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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