From: Chris Lamb <lamby@debian.org>
Date: Thu, 29 Oct 2009 11:29:46 +0000 (+0000)
Subject: Tidy check_lintian's 'log' closure
X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8948203bb0ce1dd254c0324d8706dff522417edd;p=dak.git

Tidy check_lintian's 'log' closure

Thanks Enrico for calling it out.

Signed-off-by: Chris Lamb <lamby@debian.org>
---

diff --git a/daklib/queue.py b/daklib/queue.py
index a18af981..d6267399 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -1254,9 +1254,7 @@ class Upload(object):
 
         def log(*txt):
             if self.logger:
-                args = [self.pkg.changes_file, "check_lintian"]
-                args.extend(txt)
-                self.logger.log(args)
+                self.logger.log([self.pkg.changes_file, "check_lintian"] + list(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.