[jhbuild/external-deps: 1/19] Callback to tweak skipped modules (get_mod_list)
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild/external-deps: 1/19] Callback to tweak skipped modules (get_mod_list)
- Date: Tue, 2 Jun 2009 05:31:14 -0400 (EDT)
commit 29cb0f81d8fd6761f027a385636319260a41283e
Author: John Carr <john carr unrouted co uk>
Date: Thu May 28 11:02:22 2009 +0100
Callback to tweak skipped modules (get_mod_list)
---
jhbuild/moduleset.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/jhbuild/moduleset.py b/jhbuild/moduleset.py
index e97c82e..5de9782 100644
--- a/jhbuild/moduleset.py
+++ b/jhbuild/moduleset.py
@@ -60,7 +60,7 @@ class ModuleSet:
def get_module_list(self, seed, skip=[], tags=[], ignore_cycles=False,
ignore_suggests=False, include_optional_modules=False,
- ignore_missing=False):
+ ignore_missing=False, should_skip=None):
'''gets a list of module objects (in correct dependency order)
needed to build the modules in the seed list'''
@@ -118,6 +118,11 @@ class ModuleSet:
# no tag matched, mark module as processed
self._state[self.modules[modname]] = 'processed'
+ if should_skip:
+ for name, module in self.modules:
+ if should_skip(name, module):
+ self._state[module] = 'processed'
+
def order(modules, module, mode = 'dependencies'):
if self._state.get(module, 'clean') == 'processed':
# already seen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]