Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/plugins/fedora.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-30 13:28:35 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-30 13:28:35 (GMT)
commit11a17ac1ccd59e428af735955b2007b2e1fcb982 (patch)
tree54eb38d746f42c4f2e7d772aa2a0acda2cdf466a /devbot/plugins/fedora.py
parentd0752119848004ffcc0bc1f602de146b7c20dd15 (diff)
Test the list of modules
Diffstat (limited to 'devbot/plugins/fedora.py')
-rw-r--r--devbot/plugins/fedora.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/devbot/plugins/fedora.py b/devbot/plugins/fedora.py
index 60d73d8..ebfc91a 100644
--- a/devbot/plugins/fedora.py
+++ b/devbot/plugins/fedora.py
@@ -82,6 +82,8 @@ class PackageManager(interfaces.PackageManager):
distro.register_package_manager("fedora", PackageManager)
class DistroInfo(interfaces.DistroInfo):
+ _FEDORA_RELEASE_PATH = "/etc/fedora-release"
+
def __init__(self):
arch = subprocess.check_output(["uname", "-i"]).strip()
@@ -94,7 +96,7 @@ class DistroInfo(interfaces.DistroInfo):
self.supported = (arch in ["i386", "i686", "x86_64"])
try:
- release = open("/etc/fedora-release").read().strip()
+ release = open(_FEDORA_RELEASE_PATH).read().strip()
except IOError:
release = None
self.valid = False