Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/plugins/unknown.py
diff options
context:
space:
mode:
Diffstat (limited to 'devbot/plugins/unknown.py')
-rw-r--r--devbot/plugins/unknown.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/devbot/plugins/unknown.py b/devbot/plugins/unknown.py
new file mode 100644
index 0000000..ea42112
--- /dev/null
+++ b/devbot/plugins/unknown.py
@@ -0,0 +1,37 @@
+import os
+import subprocess
+
+from devbot import command
+from devbot import distro
+from devbot.plugins import interfaces
+
+class PackageManager(interfaces.PackageManager):
+ def __init__(self, test=False, interactive=True):
+ pass
+
+ def install_packages(self, packages):
+ pass
+
+ def remove_packages(self, packages):
+ pass
+
+ def update(self):
+ pass
+
+ def find_all(self):
+ return []
+
+ def find_with_deps(self, packages):
+ return []
+
+distro.register_package_manager("unknown", PackageManager)
+
+class DistroInfo(interfaces.DistroInfo):
+ def __init__(self):
+ self.use_lib64 = os.path.exists("/usr/lib64")
+ self.name = "unknown"
+ self.version = "unknown"
+ self.system_version = "3.4"
+ self.valid = True
+
+distro.register_distro_info(DistroInfo)