get to know sourcemage too

This commit is contained in:
Nikos Kouremenos 2005-06-04 20:54:21 +00:00
parent 275187b8b6
commit 21f279a659
1 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,7 @@ distro_info = {
'Slackware Linux': '/etc/slackware-release',
'Slackware Linux': '/etc/slackware-version',
'Solaris/Sparc': '/etc/release',
'Source Mage': '/etc/sourcemage_version',
'SUSE Linux': '/etc/SuSE-release',
'Sun JDS': '/etc/sun-release',
'PLD Linux': '/etc/pld-release',
@ -96,6 +97,8 @@ def get_os_info():
text = fd.read().strip()
fd.close()
if path_to_file.endswith('version'):
# sourcemage_version has all the info we need
if not path_to_file.startswith('sourcemage'):
text = distro_name + ' ' + text
elif path_to_file.endswith('aurox-release'): # file doesn't have version
text = distro_name