summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-02-21 20:39:31 +0000
committerBill Nottingham <notting@redhat.com>2006-02-21 20:39:31 +0000
commit6c2bf8230131d914f4f28d5c6e1b504f51cae76e (patch)
tree4c2e150cc4e91a79b9c2219c7a73bd4e20c34c92 /utils
parent8de5e96b40366fb69a7fd15b7f530d2b29d0d48c (diff)
downloadanaconda-6c2bf8230131d914f4f28d5c6e1b504f51cae76e.tar.gz
anaconda-6c2bf8230131d914f4f28d5c6e1b504f51cae76e.tar.xz
anaconda-6c2bf8230131d914f4f28d5c6e1b504f51cae76e.zip
Force all strings to uppercase, for matching (#182231)
Diffstat (limited to 'utils')
-rwxr-xr-xutils/trimpciids6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/trimpciids b/utils/trimpciids
index 1276d755a..748d8dcf6 100755
--- a/utils/trimpciids
+++ b/utils/trimpciids
@@ -16,6 +16,8 @@ if f:
continue
vend = "0x%s" % (line[15:19],)
dev = "0x%s" % (line[24:28],)
+ vend = vend.upper()
+ dev = dev.upper()
if vend not in vendors:
vendors.append(vend)
if (vend, dev) not in devices:
@@ -34,6 +36,8 @@ for file in sys.argv[2:]:
continue
vend = "0x%s" % (line[20:24],)
dev = "0x%s" % (line[29:33],)
+ vend = vend.upper()
+ dev = dev.upper()
if vend not in vendors:
vendors.append(vend)
if (vend, dev) not in devices:
@@ -48,9 +52,11 @@ for line in pciids:
continue
if not line.startswith("\t"):
current_vend = "0x%s" % line.split()[0]
+ current_vend = current_vend.upper()
if current_vend in vendors:
print line,
continue
dev = "0x%s" % line.split()[0]
+ dev = dev.upper()
if (current_vend, dev) in devices:
print line,