File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python
2
+ # -*- coding: utf-8 -*-
2
3
#
3
4
# inf2mondb.py: convert .inf files for monitors to MonitorDB
4
5
#
5
6
# Matt Wilson <msw@redhat.com>
6
7
#
7
8
# Copyright 2002 Red Hat, Inc.
8
9
#
10
+ # Some fixes by Onur Küçük <onur@pardus.org.tr>
11
+ #
9
12
# This software may be freely redistributed under the terms of the GNU
10
13
# library public license.
11
14
@@ -86,7 +89,7 @@ for line in lines:
86
89
if manufacturers .has_key (tmp [1 ]):
87
90
raise RuntimeError , "Duplicate manufacturer entries"
88
91
else :
89
- manufacturers [string .lower (string .strip (tmp [3 ]))] = string .lower (string .strip (tmp [1 ]))
92
+ manufacturers [string .lower (string .strip (tmp [3 ]. split ( "," )[ 0 ] ))] = string .lower (string .strip (tmp [1 ]))
90
93
# if we're in a manufacturer section, we need to jot down
91
94
# the devices
92
95
elif manufacturers .has_key (section ):
You can’t perform that action at this time.
0 commit comments