From: Torsten Werner Date: Thu, 24 Mar 2011 20:48:08 +0000 (+0000) Subject: Add logging to make-maintainers. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ec5eb03cdb999cb228906f103e48f08352f183ce;p=dak.git Add logging to make-maintainers. Signed-off-by: Torsten Werner --- diff --git a/dak/make_maintainers.py b/dak/make_maintainers.py index 2909a357..0733f3bc 100755 --- a/dak/make_maintainers.py +++ b/dak/make_maintainers.py @@ -31,6 +31,7 @@ Generate Maintainers file used by e.g. the Debian Bug Tracking System ################################################################################ +from daklib import daklog from daklib import utils from daklib.config import Config from daklib.dbconn import * @@ -76,6 +77,7 @@ def main(): if Options["Help"]: usage() + Logger = daklog.Logger(cnf.Cnf, 'make-maintainers') session = DBConn().session() # dictionary packages to maintainer names @@ -91,15 +93,18 @@ def main(): select distinct on (package) * from binaries order by package, version desc''') + Logger.log(['sources']) for source in source_query: maintainers[source.source] = source.maintainer.name uploaders[source.source] = uploader_list(source) + Logger.log(['binaries']) for binary in binary_query: if binary.package not in maintainers: maintainers[binary.package] = binary.maintainer.name uploaders[binary.package] = uploader_list(binary.source) + Logger.log(['files']) # Process any additional Maintainer files (e.g. from pseudo # packages) for filename in extra_files: @@ -120,6 +125,7 @@ def main(): uploader_file.write(format(package, uploader)) uploader_file.close() maintainer_file.close() + Logger.close() ################################################################################