Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/plugins
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-26 17:45:04 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-26 17:45:04 (GMT)
commit4c215580bfe2198f2d071098b040964be2501460 (patch)
treef96bf1becb75005e05ec5e8a943b8013b21d15f5 /devbot/plugins
parent48fa680ef5982cc59d1f4683aeed2865be7225bf (diff)
Register ubuntu DistroInfo
Diffstat (limited to 'devbot/plugins')
-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 d45aeb2..4b624e1 100644
--- a/devbot/plugins/ubuntu.py
+++ b/devbot/plugins/ubuntu.py
@@ -89,7 +89,8 @@ class DistroInfo(interfaces.DistroInfo):
self.system_version = None
self.valid = False
self.use_lib64 = False
-
+
+ arch = subprocess.check_output(["uname", "-i"]).strip()
if arch in ["i386", "i686", "x86_64"]:
try:
if self._get_distributor() == "Ubuntu" and \
@@ -106,3 +107,5 @@ class DistroInfo(interfaces.DistroInfo):
def _get_release(self):
return subprocess.check_output(["lsb_release", "-sr"]).strip()
+
+distro.register_distro_info(DistroInfo)