From 8843bede27531c936b70fd2e869ff4f1dbc7c3c1 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 3 May 2011 15:04:36 +0000 Subject: Print comments only on modules that will be used --- configure.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 2a8280061..b35871c8b 100755 --- a/configure.py +++ b/configure.py @@ -540,8 +540,9 @@ class ModuleInfo(object): self.uses_tr1 = (True if self.uses_tr1 == 'yes' else False) if self.comment != []: - logging.info('Module comment for ' + self.basename + ' - ' + - ' '.join(self.comment)) + self.comment = ' '.join(self.comment) + else: + self.comment = None def sources(self): return self.source @@ -1228,6 +1229,10 @@ def choose_modules_to_use(modules, archinfo, options): logging.debug('Loading modules %s', ' '.join(sorted(to_load))) + for mod in to_load: + if modules[mod].comment: + logging.info('%s: %s' % (mod, modules[mod].comment)) + return [modules[mod] for mod in to_load] """ -- cgit v1.2.3