From b44e01da2c36417b28f88df73318d8a1be2196b1 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Wed, 28 Oct 2009 19:42:25 +0000 Subject: [PATCH] Add check_lintian logging. Signed-off-by: Chris Lamb --- daklib/queue.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daklib/queue.py b/daklib/queue.py index f7d999a3..ff1c51d1 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -1267,6 +1267,10 @@ class Upload(object): if len(output) == 0: return + def log(*txt): + if self.logger: + self.logger.log([self.pkg.changes_file, "check_lintian", *txt]) + # We have output of lintian, this package isn't clean. Lets parse it and see if we # are having a victim for a reject. # W: tzdata: binary-without-manpage usr/sbin/tzconfig @@ -1293,9 +1297,11 @@ class Upload(object): elif etag in lintiantags['error']: # The tag is overriden - but is not allowed to be self.rejects.append("%s: Overriden tag %s found, but this tag may not be overwritten." % (epackage, etag)) + log("overidden tag is overridden", etag) else: # Tag is known, it is not overriden, direct reject. self.rejects.append("%s: Found lintian output: '%s %s', automatically rejected package." % (epackage, etag, etext)) + log("auto rejecting", etag) # Now tell if they *might* override it. if etag in lintiantags['warning']: self.rejects.append("%s: If you have a good reason, you may override this lintian tag." % (epackage)) -- 2.39.2