Skip to content

Commit dda8dc9

Browse files
author
Onur Küçük
committed
fix bug 5122
1 parent 4757fd3 commit dda8dc9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inf2mondb

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
23
#
34
# inf2mondb.py: convert .inf files for monitors to MonitorDB
45
#
56
# Matt Wilson <msw@redhat.com>
67
#
78
# Copyright 2002 Red Hat, Inc.
89
#
10+
# Some fixes by Onur Küçük <onur@pardus.org.tr>
11+
#
912
# This software may be freely redistributed under the terms of the GNU
1013
# library public license.
1114

@@ -86,7 +89,7 @@ for line in lines:
8689
if manufacturers.has_key (tmp[1]):
8790
raise RuntimeError, "Duplicate manufacturer entries"
8891
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]))
9093
# if we're in a manufacturer section, we need to jot down
9194
# the devices
9295
elif manufacturers.has_key(section):

0 commit comments

Comments
 (0)