1 |
bytegw |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smolt-0.9.8.1/client/software.py mezzanine_patched_smolt-0.9.8.1/client/software.py |
2 |
|
|
--- smolt-0.9.8.1/client/software.py 2007-05-24 12:54:23.000000000 -0600 |
3 |
|
|
+++ mezzanine_patched_smolt-0.9.8.1/client/software.py 2008-01-07 00:26:18.000000000 -0700 |
4 |
|
|
@@ -40,9 +40,9 @@ |
5 |
|
|
|
6 |
|
|
def read_os(): |
7 |
|
|
try: |
8 |
|
|
- return file('/etc/redhat-release').read().strip() |
9 |
|
|
+ return file('/etc/e-smith-release').read().strip() |
10 |
|
|
except IOError: |
11 |
|
|
try: |
12 |
|
|
- return file('/etc/SuSE-release').read().split('\n')[0].strip() |
13 |
|
|
+ return file('/etc/redhat-release').read().strip() |
14 |
|
|
except IOError: |
15 |
|
|
return 'Unknown' |