fix for FC releases that do not have pcitable file
authorMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 8 Mar 2007 17:53:17 +0000 (17:53 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 8 Mar 2007 17:53:17 +0000 (17:53 +0000)
source/merge_hw_tables.py

index 036d0e6..dfe3378 100755 (executable)
@@ -50,6 +50,7 @@ cciss 0e11:b060 0e11:b178
 
 import os, sys
 import string
+import StringIO
 
 PCI_ANY = 0xffffffffL
 
@@ -79,7 +80,7 @@ def merge_files(modules_dep_path, modules_pcimap_path, pcitable_path):
     except IOError:
         sys.stderr.write( "Unable to open pcitable: %s\n" %
                           pcitable_path )
-        return
+       pcitable_file=StringIO.StringIO()
 
     # associative array to store all matches of module -> ['vendor:device',..]
     # entries