[jhbuild] Don't get_system_modules if check_sysdeps is false (GNOME bug 678361)



commit f968ef467a78ef01ec6426bb2f4b1e6b8072aa16
Author: Craig Keogh <cskeogh adam com au>
Date:   Sun Jul 22 21:46:19 2012 +0930

    Don't get_system_modules if check_sysdeps is false (GNOME bug 678361)

 jhbuild/commands/base.py |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/jhbuild/commands/base.py b/jhbuild/commands/base.py
index dda0fff..c329dbe 100644
--- a/jhbuild/commands/base.py
+++ b/jhbuild/commands/base.py
@@ -242,16 +242,16 @@ class cmd_build(BuildCommand):
                     _('requested module is in the ignore list, nothing to do.'))
             return 0
 
-        module_state = module_set.get_system_modules(full_module_list)
-        if (config.check_sysdeps
-            and not self.required_system_dependencies_installed(module_state)):
-            self.print_system_dependencies(module_state)
-            raise FatalError(_('Required system dependencies not installed. '
-                               'Install using the command %(cmd)s or to '
-                               'ignore system dependencies use command-line '
-                               'option %(opt)s' \
-                               % {'cmd' : "'jhbuild sysdeps --install'",
-                                  'opt' : '--nodeps'}))
+        if config.check_sysdeps:
+            module_state = module_set.get_system_modules(full_module_list)
+            if not self.required_system_dependencies_installed(module_state):
+                self.print_system_dependencies(module_state)
+                raise FatalError(_('Required system dependencies not installed.'
+                                   ' Install using the command %(cmd)s or to '
+                                   'ignore system dependencies use command-line'
+                                   ' option %(opt)s' \
+                                   % {'cmd' : "'jhbuild sysdeps --install'",
+                                      'opt' : '--nodeps'}))
 
         build = jhbuild.frontends.get_buildscript(config, module_list, module_set=module_set)
         return build.build()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]