From 21f279a6594c1f5a8995f6e1db0ee45311a9dc3f Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 4 Jun 2005 20:54:21 +0000 Subject: [PATCH] get to know sourcemage too --- src/common/connection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index 6dd7bd664..3e77bf861 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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,7 +97,9 @@ def get_os_info(): text = fd.read().strip() fd.close() if path_to_file.endswith('version'): - text = distro_name + ' ' + text + # 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 elif path_to_file.endswith('lfs-release'): # file just has version