summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-11-17 03:46:43 +0000
committerJeremy Katz <katzj@redhat.com>2005-11-17 03:46:43 +0000
commit5d69e12200d9c9652738f1a5cc11f0aaf02b5639 (patch)
tree7f28fb1546c1a080bba48b9607a679c269f18e85 /utils
parent4e8493d589cd851cda66ad73b9fe4e9eef56591a (diff)
downloadanaconda-5d69e12200d9c9652738f1a5cc11f0aaf02b5639.tar.gz
anaconda-5d69e12200d9c9652738f1a5cc11f0aaf02b5639.tar.xz
anaconda-5d69e12200d9c9652738f1a5cc11f0aaf02b5639.zip
2005-11-16 Jeremy Katz <katzj@redhat.com>
* utils/trimpciids (f): Make a little bit more failure resistent
Diffstat (limited to 'utils')
-rwxr-xr-xutils/trimpciids3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/trimpciids b/utils/trimpciids
index dfd5c1e58..1276d755a 100755
--- a/utils/trimpciids
+++ b/utils/trimpciids
@@ -22,6 +22,9 @@ if f:
devices.append( (vend, dev) )
for file in sys.argv[2:]:
+ if not os.path.exists(file):
+ sys.stderr.write("WARNING: non-existent file %s for trimpciids\n" %(file,))
+ continue
f = open(file)
if f:
pcitable = f.readlines()