summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-05-09 05:17:59 +0000
committerMatt Wilson <msw@redhat.com>2002-05-09 05:17:59 +0000
commit2a7ce144743aad7b488ecc27fa496541ccc91528 (patch)
treec0483eaa0f156e012e8c04731a3af944ddd9617f /packages.py
parente9d1b9c6b4f25d32b39dbdc5d607fafc6c6f7f3f (diff)
downloadanaconda-2a7ce144743aad7b488ecc27fa496541ccc91528.tar.gz
anaconda-2a7ce144743aad7b488ecc27fa496541ccc91528.tar.xz
anaconda-2a7ce144743aad7b488ecc27fa496541ccc91528.zip
duh. lets not blow away our fd before trying to close it
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index 9511e0363..476dc84d8 100644
--- a/packages.py
+++ b/packages.py
@@ -256,8 +256,11 @@ class InstallCallback:
if not hdr:
raise SystemError
except:
+ try:
+ os.close(self.rpmFD)
+ except:
+ pass
self.rpmFD = -1
- os.close(self.rpmFD)
raise SystemError
except:
self.messageWindow(_("Error"),