summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui')
-rw-r--r--portato/gui/exception_handling.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/portato/gui/exception_handling.py b/portato/gui/exception_handling.py
index a5174f5..8584dea 100644
--- a/portato/gui/exception_handling.py
+++ b/portato/gui/exception_handling.py
@@ -102,14 +102,16 @@ def get_version_infos():
from ..backend import system
runsystem="Unknown"
- if os.path.exists("/etc/gentoo-release"):
- runsystem = "Gentoo"
+
+ # check for sabayon first, as sabayon also has the gentoo release
+ for sp in ("/etc/sabayon-release", "/etc/sabayon-edition"):
+ if os.path.exists(sp):
+ with open(sp) as r:
+ runsystem = "Sabayon: %s" % r.readline().strip()
+ break
else:
- for sp in ("/etc/sabayon-release", "/etc/sabayon-edition"):
- if os.path.exists(sp):
- with open(sp) as r:
- runsystem = "Sabayon: %s" % r.readline().strip()
- break
+ if os.path.exists("/etc/gentoo-release"):
+ runsystem = "Gentoo"
return "\n".join((
695693f3580c9a243d02296&follow=1'>Implemented the mail sendingRené 'Necoro' Neumann2-3/+63 2008-06-22First mail window draftRené 'Necoro' Neumann3-0/+220 2008-06-10Added gpytage pluginRené 'Necoro' Neumann2-0/+29 2008-06-10Modified plugin.xsd so it allows also menu-only pluginsRené 'Necoro' Neumann2-7/+8 2008-06-10Fixed the default handlingRené 'Necoro' Neumann1-1/+1 2008-06-10Allowed default for session; load 'app-portage/portato' as default for select...René 'Necoro' Neumann2-10/+18 2008-06-09Fixed 'kill' in the systray popupRené 'Necoro' Neumann1-2/+2 2008-06-09Fixed error messageRené 'Necoro' Neumann2-4/+1 2008-06-08Make blocks way more intelligentRené 'Necoro' Neumann3-45/+107