diff options
-rw-r--r-- | config/modules/system.json | 5 | ||||
-rw-r--r-- | devbot/config.py | 3 | ||||
-rw-r--r-- | tests/devbot/test_config.py | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/config/modules/system.json b/config/modules/system.json index eddd82c..d0f891d 100644 --- a/config/modules/system.json +++ b/config/modules/system.json @@ -15,6 +15,7 @@ "repo": "git://github.com/dnarvaez/gnome-keyring.git" }, { + "if": "gnome_version == '3.4' or distro == 'ubuntu-12.10'", "name": "glib", "options": [ "--disable-modular-tests" @@ -23,6 +24,7 @@ "tag": "2.34.3" }, { + "if": "gnome_version == '3.4' or distro == 'ubuntu-12.10'", "name": "gobject-introspection", "options": [ "--disable-tests" @@ -31,12 +33,12 @@ "tag": "GOBJECT_INTROSPECTION_1_34_2" }, { + "if": "gnome_version == '3.4' or distro == 'ubuntu-12.10'", "name": "pygobject", "repo": "git://git.gnome.org/pygobject", "tag": "c36e12368bb430ca1fb6eafd7d86f59c44965a31" }, { - "if": "gnome_version == '3.4'", "name": "atk", "repo": "git://git.gnome.org/atk", "tag": "ATK_2_6_0" @@ -96,6 +98,7 @@ "tag": "libxklavier-5.3" }, { + "if": "gnome_version == '3.4' or distro == 'ubuntu-12.10'", "name": "metacity", "options": [ "--disable-themes-documentation" diff --git a/devbot/config.py b/devbot/config.py index fe96f17..73cad0c 100644 --- a/devbot/config.py +++ b/devbot/config.py @@ -182,7 +182,8 @@ def _filter_if(item): distro_info = distro.get_distro_info() globals = {"gstreamer_version": distro_info.gstreamer_version, - "gnome_version": distro_info.gnome_version} + "gnome_version": distro_info.gnome_version, + "distro": "%s-%s" % (distro_info.name, distro_info.version)} return eval(item["if"], globals) diff --git a/tests/devbot/test_config.py b/tests/devbot/test_config.py index 32c2526..f4d3260 100644 --- a/tests/devbot/test_config.py +++ b/tests/devbot/test_config.py @@ -86,7 +86,7 @@ class TestConfig(common.DevbotTestCase): self.assertEquals("fedora", distro.get_distro_info().name) self.assertEquals("18", distro.get_distro_info().version) modules = config.load_modules() - self._assert_module(modules, "glib") + self._assert_no_module(modules, "glib") self._assert_no_module(modules, "gtk+") self._assert_no_module(modules, "gnome-keyring") self._assert_no_module(modules, "gstreamer") |