Committer: Tim Just <tim.just@xxxxxxxxxxxxxx> Date: 18/03/2010 at 16:08:13 Revision: 3692 Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: tiny Log: Improved ouput of process_modules. The output format for disabled and enabled modules was unified. Now, the state is displayed for each module. Modified: M process_modules.py === modified file 'process_modules.py' --- process_modules.py 2010-03-16 17:16:43 +0000 +++ process_modules.py 2010-03-18 14:07:15 +0000 @@ -121,21 +121,23 @@ for disabled in disabled_modules: if current_module == os.path.join(MODULES_DIR, disabled) + '/': cont = True - print '| ' + disabled + ' is disabled' + print '| found module: ' + disabled + print '| state: ' + 'DISABLED' if 'all' == compile_type: - print '| ...this module will be compiled, but not linked!\n|' + print '| (this module will be compiled, but not linked)\n|' elif 'enabled' == compile_type: - print '| ...this module will not be compiled!\n|' + print '| (this module will not be compiled)\n|' else: - print '| ...ignoring this directory!\n|' + print '| (ignoring this directory)\n|' if True == cont: continue try: path = os.path.join(current_module, MODULE_INFO_FILE) (name, info) = parse_module_info(path, applications) - print '| found module: ' + name, - print '(version ' + info['version'] + ')' + print '| found module: ' + name + print '| state: ' + 'ENABLED' + print '| version: ' + info['version'] + '\n|' module_info[name] = info except: print '|\n| WARNING parsing of module info file',