diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 09:56:23 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 09:56:23 (GMT) |
commit | afe7926e52a5263114f89e1f02e4cf46a3f9312f (patch) | |
tree | 459637be68ce0a5a03bbbaff2dcef790362641a2 /scripts/jhbuildrc | |
parent | 5027c5f474d446ff5438316a05dd7d4b0532b545 (diff) |
Move modules in their own dir
Diffstat (limited to 'scripts/jhbuildrc')
-rw-r--r-- | scripts/jhbuildrc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/jhbuildrc b/scripts/jhbuildrc index a8e026e..ec17a28 100644 --- a/scripts/jhbuildrc +++ b/scripts/jhbuildrc @@ -7,6 +7,10 @@ if os.path.exists("/usr/lib/girepository-1.0"): def root(): return os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +def moduleset_path(moduleset): + return os.path.join(root(), "scripts", "modules", + "%s.modules" % moduleset) + def libdir(system=False): if system: base = "/usr" @@ -21,8 +25,8 @@ def libdir(system=False): interact = not "SUGAR_BUILDBOT" in os.environ use_local_modulesets = True -moduleset = [os.path.join(root(), "scripts", "system.modules"), - os.path.join(root(), "scripts", "sugar.modules")] +moduleset = [moduleset_path("system"), + moduleset_path("sugar")] modules = ["meta-system", "meta-sugar"] checkoutroot = os.path.join(root(), "source") |