From 05b2c03cf3971303354b3a188fbbb0bbb8d554fc Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Thu, 29 Nov 2012 16:18:29 +0000 Subject: Make json configs a bit smarter To get rid of the duplication in deps --- (limited to 'devbot/plugins') diff --git a/devbot/plugins/debian.py b/devbot/plugins/debian.py index 8ba62b0..38d5be4 100644 --- a/devbot/plugins/debian.py +++ b/devbot/plugins/debian.py @@ -90,6 +90,7 @@ class DistroInfo(interfaces.DistroInfo): self.name = "debian" self.version = "unknown" self.system_version = "3.4" + self.gstreamer_version = "0.10" self.valid = True self.supported = (arch in ["i686", "x86_64"]) self.use_lib64 = False diff --git a/devbot/plugins/fedora.py b/devbot/plugins/fedora.py index 083c479..3cfdfef 100644 --- a/devbot/plugins/fedora.py +++ b/devbot/plugins/fedora.py @@ -88,6 +88,7 @@ class DistroInfo(interfaces.DistroInfo): self.name = "fedora" self.version = "unknown" self.system_version = "3.6" + self.gstreamer_version = "1.0" self.use_lib64 = (arch == "x86_64") self.valid = True self.supported = (arch in ["i386", "i686", "x86_64"]) @@ -101,6 +102,7 @@ class DistroInfo(interfaces.DistroInfo): if release == "Fedora release 17 (Beefy Miracle)": self.version = "17" self.system_version = "3.4" + self.gstreamer_version = "0.10" elif release == "Fedora release 18 (Spherical Cow)": self.version = "18" else: diff --git a/devbot/plugins/interfaces.py b/devbot/plugins/interfaces.py index 0c9c0b6..c6db014 100644 --- a/devbot/plugins/interfaces.py +++ b/devbot/plugins/interfaces.py @@ -48,6 +48,9 @@ class DistroInfo: major version of GNOME installed on the system. """ + self.gstreamer_version = None + """The version of gstreamer shipped with the distribution.""" + self.valid = False """If set to True we are running on this distribution and the attributes are all valid. diff --git a/devbot/plugins/ubuntu.py b/devbot/plugins/ubuntu.py index 4db0dd1..556aaab 100644 --- a/devbot/plugins/ubuntu.py +++ b/devbot/plugins/ubuntu.py @@ -13,6 +13,7 @@ class DistroInfo(interfaces.DistroInfo): self.name = "ubuntu" self.version = "unknown" self.system_version = "3.4" + self.gstreamer_version = "1.0" self.valid = True self.supported = (arch in ["i386", "i686", "x86_64"]) self.use_lib64 = False diff --git a/devbot/plugins/unknown.py b/devbot/plugins/unknown.py index 826f643..f843fd5 100644 --- a/devbot/plugins/unknown.py +++ b/devbot/plugins/unknown.py @@ -32,6 +32,7 @@ class DistroInfo(interfaces.DistroInfo): self.name = "unknown" self.version = "unknown" self.system_version = "3.4" + self.gstreamer_version = "0.10" self.valid = True self.supported = False -- cgit v0.9.1