summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-03 01:04:36 +0000
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-03 01:04:36 +0000
commit4250e6969b807bec849d9c9078ec5206333ac339 (patch)
tree42225879ae6d2c65478c24fb604465f7bd778853
parent3d248edb873d90f77798a31a5287f947b9579913 (diff)
downloadportato-4250e6969b807bec849d9c9078ec5206333ac339.tar.gz
portato-4250e6969b807bec849d9c9078ec5206333ac339.tar.bz2
portato-4250e6969b807bec849d9c9078ec5206333ac339.zip
Return correct system result on Sabayon
-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((
1-5/+8 2012-09-06Add dependencies to README.Jason A. Donenfeld1-0/+8 2012-09-06Change debian name.Jason A. Donenfeld5-5/+4 2012-09-06Use more normal sleep variant.1.1.1Jason A. Donenfeld1-1/+1 2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld1-1/+1 2012-09-05Be sure to explicitly state that install is a phony target.Jason A. Donenfeld1-0/+2 2012-09-05Bump debian version horribly.1.1Jason A. Donenfeld2-2/+2 2012-09-04No echo mode.Jason A. Donenfeld2-16/+42 2012-09-04Properly quote the path too.Jason A. Donenfeld1-1/+1 2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa1-1/+1 2012-09-04Separate out the massive git example.Jason A. Donenfeld1-10/+14 2012-09-04Prepare for debianification.1.0Jason A. Donenfeld9-4/+60 2012-09-03Fix readme typo.Jason A. Donenfeld1-1/+1 2012-09-03Show program name properly in error message.Jason A. Donenfeld1-1/+1 2012-09-03Move examples into manpage.Jason A. Donenfeld4-93/+224 2012-09-03Make into a real project.Jason A. Donenfeld8-5/+173 2012-09-03Support pass gitJason A. Donenfeld2-1/+15 2012-08-31Add remove synonyms.Jason A. Donenfeld1-2/+2 2012-08-31Use basename in usage.Jason A. Donenfeld1-2/+1 2012-08-19now using gpg_id as a varMatthew Ramirez1-2/+2 2012-08-07Forty five seconds.Jason A. Donenfeld1-1/+1 2012-08-06Deal with klipper and new lines.Jason A. Donenfeld1-3/+19 2012-08-06Update examples.Jason A. Donenfeld1-7/+7 2012-08-06Update readme.Jason A. Donenfeld1-11/+13 2012-08-06Be slicker and more like git.Jason A. Donenfeld1-114/+173