diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-26 17:45:04 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-26 17:45:04 (GMT) |
commit | 4c215580bfe2198f2d071098b040964be2501460 (patch) | |
tree | f96bf1becb75005e05ec5e8a943b8013b21d15f5 /devbot/plugins | |
parent | 48fa680ef5982cc59d1f4683aeed2865be7225bf (diff) |
Register ubuntu DistroInfo
Diffstat (limited to 'devbot/plugins')
-rw-r--r-- | devbot/plugins/ubuntu.py | 5 |
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) |