/[smeserver]/rpms/smolt/sme7/smolt-0.9.8.1-sme.patch3
ViewVC logotype

Contents of /rpms/smolt/sme7/smolt-0.9.8.1-sme.patch3

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Mar 4 00:49:44 2010 UTC (14 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Upgrade

1 diff -Nur -x '*.orig' -x '*.rej' smolt-0.9.8.1/client/smolt.py mezzanine_patched_smolt-0.9.8.1/client/smolt.py
2 --- smolt-0.9.8.1/client/smolt.py 2007-07-01 15:58:05.000000000 -0600
3 +++ mezzanine_patched_smolt-0.9.8.1/client/smolt.py 2007-07-01 15:56:55.000000000 -0600
4 @@ -182,7 +182,12 @@
5 try:
6 self.language = os.environ['LANG']
7 except KeyError:
8 - self.language = 'Unknown'
9 + try:
10 + status, lang = commands.getstatusoutput("grep LANG /etc/sysconfig/i18n")
11 + if status == 0:
12 + self.language = lang.split('"')[1]
13 + except:
14 + self.language = 'Unknown'
15 try:
16 self.platform = hostInfo['system.kernel.machine']
17 except KeyError:
18 @@ -285,7 +290,7 @@
19 props = dev.GetAllProperties()
20 self.devices[udi] = Device(props)
21 if udi == '/org/freedesktop/Hal/devices/computer':
22 - status, systemType = commands.getstatusoutput("config gettype SystemMode")
23 + status, systemType = commands.getstatusoutput("/sbin/e-smith/config gettype SystemMode")
24 if status == 0:
25 props['system.formfactor'] = systemType
26 try:
27 @@ -311,7 +316,7 @@
28 except KeyError:
29 product = None
30 if vendor is None or product is None:
31 - dmiOutput = os.popen("dmidecode", "r")
32 + dmiOutput = os.popen("/usr/sbin/dmidecode", "r")
33 section = None
34 sysvendor = None
35 sysproduct = None

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed