From 3c5dd38a921988286eeee455f18401af2da55df9 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Mon, 18 Jul 2011 09:35:59 +0000 Subject: Adapt to upstream commit fc61d74 ("Move some XML parsing for Package into base class") --- (limited to 'sjhbuild/bundlemodule.py') diff --git a/sjhbuild/bundlemodule.py b/sjhbuild/bundlemodule.py index 621d5a1..3f9ec0c 100644 --- a/sjhbuild/bundlemodule.py +++ b/sjhbuild/bundlemodule.py @@ -3,7 +3,7 @@ __metaclass__ = type import os from jhbuild.errors import BuildStateError -from jhbuild.modtypes import distutils, get_branch, get_dependencies, register_module_type +from jhbuild.modtypes import distutils, register_module_type __all__ = ['BundleModule'] @@ -45,19 +45,14 @@ class BundleModule(distutils.DistutilsModule): def parse_bundle(node, config, uri, repositories, default_repo): - bundle_id = node.getAttribute('id') + instance = BundleModule.parse_from_xml(node, config, uri, repositories, default_repo) # sugar.activity.bundlebuilder doesn't support --build-base (SL#2947) - supports_non_srcdir_builds = False + instance.supports_non_srcdir_builds = False if node.hasAttribute('supports-non-srcdir-builds'): - supports_non_srcdir_builds = \ + instance.supports_non_srcdir_builds = \ (node.getAttribute('supports-non-srcdir-builds') != 'no') - dependencies, after, suggests = get_dependencies(node) - branch = get_branch(node, repositories, default_repo, config) - return BundleModule(bundle_id, branch, - dependencies = dependencies, after = after, - suggests = suggests, - supports_non_srcdir_builds = supports_non_srcdir_builds) + return instance register_module_type('bundle', parse_bundle) -- cgit v0.9.1