Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/plugins/ubuntu.py
diff options
context:
space:
mode:
Diffstat (limited to 'devbot/plugins/ubuntu.py')
-rw-r--r--devbot/plugins/ubuntu.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/devbot/plugins/ubuntu.py b/devbot/plugins/ubuntu.py
index 47379ac..140d8ad 100644
--- a/devbot/plugins/ubuntu.py
+++ b/devbot/plugins/ubuntu.py
@@ -9,7 +9,7 @@ distro.register_package_manager("ubuntu", debian.PackageManager)
class DistroInfo(interfaces.DistroInfo):
_OS_RELEASE_PATH="/etc/os-release"
def __init__(self):
- arch = subprocess.check_output(["uname", "-i"]).strip()
+ arch = self._get_architecture()
self.name = "ubuntu"
self.version = "unknown"
@@ -40,4 +40,7 @@ class DistroInfo(interfaces.DistroInfo):
if self.version and self.version >= "12.10":
self.gnome_version = "3.6"
+ def _get_architecture(self):
+ return subprocess.check_output(["uname", "-i"]).strip()
+
distro.register_distro_info(DistroInfo)