[jhbuild] Fixed logging.info message when fixing case of the module.
- From: Pablo Castellano <pablog src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [jhbuild] Fixed logging.info message when fixing case of the module.
- Date: Sat, 2 Jan 2010 23:00:51 +0000 (UTC)
commit 7d34af7d9d35157053e0982fd481b3311e5026ab
Author: Pablo Castellano <pablog src gnome org>
Date: Sat Jan 2 23:57:16 2010 +0100
Fixed logging.info message when fixing case of the module.
- module_name and module were the same.
- Use a tuple instead of a dictionary which is simpler.
jhbuild/moduleset.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/jhbuild/moduleset.py b/jhbuild/moduleset.py
index f3f7b38..37e1a46 100644
--- a/jhbuild/moduleset.py
+++ b/jhbuild/moduleset.py
@@ -49,12 +49,12 @@ class ModuleSet:
def get_module(self, module_name, ignore_case = False):
if self.modules.has_key(module_name) or not ignore_case:
return self.modules[module_name]
- module_name = module_name.lower()
+ module_name_lower = module_name.lower()
for module in self.modules.keys():
- if module.lower() == module_name:
+ if module.lower() == module_name_lower:
if self.config is None or not self.config.quiet_mode:
- logging.info(_('fixed case of module \'%(orig)s\' to \'%(new)s\'') % {
- 'orig': module_name, 'new': module})
+ logging.info(_('fixed case of module \'%s\' to \'%s\'')
+ % (module_name, module))
return self.modules[module]
print "Couldn't find the specified module: %s" % module_name
sys.exit(2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]