summaryrefslogtreecommitdiff
path: root/portato/gui/exception_handling.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-13 14:00:54 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-13 14:00:54 +0100
commitc26f4f8a6923f5a83858a90ac928d986000fb1c5 (patch)
treec973787a6293484b0b01362dd3aced47cc0d4280 /portato/gui/exception_handling.py
parentbac4fa07e289f56503a0962a034edc16d26dafb9 (diff)
downloadportato-c26f4f8a6923f5a83858a90ac928d986000fb1c5.tar.gz
portato-c26f4f8a6923f5a83858a90ac928d986000fb1c5.tar.bz2
portato-c26f4f8a6923f5a83858a90ac928d986000fb1c5.zip
Additional sabayon message for missing portage tree
Diffstat (limited to 'portato/gui/exception_handling.py')
-rw-r--r--portato/gui/exception_handling.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/portato/gui/exception_handling.py b/portato/gui/exception_handling.py
index 4068ad9..2e9c76c 100644
--- a/portato/gui/exception_handling.py
+++ b/portato/gui/exception_handling.py
@@ -18,7 +18,7 @@ import sys, traceback, os
from StringIO import StringIO
-from ..helper import debug, error
+from ..helper import debug, error, get_runsystem
from .dialogs import file_chooser_dialog, io_ex_dialog
from .windows.mailinfo import MailInfoWindow
from .utils import GtkThread
@@ -101,22 +101,9 @@ def get_version_infos():
from ..constants import VERSION
from ..backend import system
- runsystem="Unknown"
-
- # 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:
- if os.path.exists("/etc/gentoo-release"):
- runsystem = "Gentoo"
-
-
return "\n".join((
"Portato version: %s" % VERSION,
- "System: %s" % runsystem,
+ "System: %s" % " ".join(get_runsystem()),
"Python version: %s" % sys.version,
"Used backend: %s" % system.get_version(),
"pygtk: %s (using GTK+: %s)" % (convert(gtk.pygtk_version), convert(gtk.gtk_version)),