[jhbuild] Don't list or build SystemModules if partial_build is False



commit cbb12def24c93908c87ed217ab7f919296132ac7
Author: Craig Keogh <cskeogh adam com au>
Date:   Thu Jun 21 15:54:19 2012 +0930

    Don't list or build SystemModules if partial_build is False

 jhbuild/moduleset.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/jhbuild/moduleset.py b/jhbuild/moduleset.py
index 1403756..019c8d5 100644
--- a/jhbuild/moduleset.py
+++ b/jhbuild/moduleset.py
@@ -208,12 +208,14 @@ class ModuleSet:
 
     def remove_system_modules(self, modules):
         if not self.config.partial_build:
-            return modules
+            return [module for module in modules \
+                    if not isinstance(module, SystemModule)]
 
-        installed_pkgconfig = systeminstall.get_installed_pkgconfigs \
-                                  (self.config)
         return_list = []
 
+        installed_pkgconfig = systeminstall.get_installed_pkgconfigs \
+                                (self.config)
+
         for module in modules:
             if isinstance(module, SystemModule):
                 continue



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