summaryrefslogtreecommitdiffstats
path: root/scripts/pkgorder
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-11-15 18:27:54 +0000
committerChris Lumens <clumens@redhat.com>2005-11-15 18:27:54 +0000
commit597817f1cb09600e916c0d338dba1d4cee10d6a0 (patch)
tree16ba52ccbb518e43c60a6eedc480d428f301974c /scripts/pkgorder
parentd2dd85a45d0e3d5bdfd58a47e5dbe3e597e42b61 (diff)
downloadanaconda-597817f1cb09600e916c0d338dba1d4cee10d6a0.tar.gz
anaconda-597817f1cb09600e916c0d338dba1d4cee10d6a0.tar.xz
anaconda-597817f1cb09600e916c0d338dba1d4cee10d6a0.zip
Catch OSError as well.
Diffstat (limited to 'scripts/pkgorder')
-rwxr-xr-xscripts/pkgorder2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pkgorder b/scripts/pkgorder
index 0bae2a259..98f191b95 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -103,7 +103,7 @@ enabled=1
try:
(fd, path) = tempfile.mkstemp("", "yum-conf-", toppath)
- except IOError, e:
+ except (OSError, IOError), e:
print >> sys.stderr, "Error writing to %s" % (toppath,)
sys.exit(1)
os.write(fd, yumconfstr)