summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwhatmaps9
1 files changed, 8 insertions, 1 deletions
diff --git a/whatmaps b/whatmaps
index 9dbebc1..779b7dc 100755
--- a/whatmaps
+++ b/whatmaps
@@ -256,7 +256,14 @@ def detect_distro():
elif id == FedoraDistro.id:
return FedoraDistro
else:
- return None
+ if os.path.exists('/usr/bin/dpkg'):
+ logging.warning("Unknown distro but dpkg found, assuming Debian")
+ return DebianDistro
+ elif os.path.exists('/bin/rpm'):
+ logging.warning("Unknown distro but rpm found, assuming Fedora")
+ return FedoraDistro
+ else:
+ return None
def main(argv):