diff options
Diffstat (limited to 'devbot/plugins/fedora.py')
-rw-r--r-- | devbot/plugins/fedora.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/devbot/plugins/fedora.py b/devbot/plugins/fedora.py index 27f1d17..862ca81 100644 --- a/devbot/plugins/fedora.py +++ b/devbot/plugins/fedora.py @@ -85,7 +85,7 @@ class DistroInfo(interfaces.DistroInfo): _FEDORA_RELEASE_PATH = "/etc/fedora-release" def __init__(self): - arch = subprocess.check_output(["uname", "-i"]).strip() + arch = self._get_architecture() self.name = "fedora" self.version = "unknown" @@ -110,4 +110,7 @@ class DistroInfo(interfaces.DistroInfo): else: self.supported = False + def _get_architecture(self): + return subprocess.check_output(["uname", "-i"]).strip() + distro.register_distro_info(DistroInfo) |