summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-07 20:08:23 +0000
committerMatt Wilson <msw@redhat.com>1999-08-07 20:08:23 +0000
commit8953f00459690514a832ebd901403efde63cedec (patch)
tree552780a185759fb6e08edd1d2d5bc7f9dd647e4c
parent40bc06386d779c79e1c53b4f73bc47cd97471b8c (diff)
downloadanaconda-8953f00459690514a832ebd901403efde63cedec.tar.gz
anaconda-8953f00459690514a832ebd901403efde63cedec.tar.xz
anaconda-8953f00459690514a832ebd901403efde63cedec.zip
oops! need to use the list we _sorted_
-rw-r--r--todo.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/todo.py b/todo.py
index df77b895c..1da25db64 100644
--- a/todo.py
+++ b/todo.py
@@ -389,7 +389,7 @@ class ToDo:
keys = self.mounts.keys ()
keys.sort()
- for mntpoint in self.mounts.keys ():
+ for mntpoint in keys:
(device, fsystem, format) = self.mounts[mntpoint]
if not format: continue
w = self.intf.waitWindow("Formatting",
@@ -613,11 +613,12 @@ class ToDo:
intf.setPackage(h)
intf.setPackageScale(0, 1)
fn = method.getFilename(h)
- d = os.open(fn, os.O_RDONLY)
- return d
+ instCallbsack.d = os.open(fn, os.O_RDONLY)
+ return instCallback.d
elif (what == rpm.RPMCALLBACK_INST_PROGRESS):
intf.setPackageScale(amount, total)
elif (what == rpm.RPMCALLBACK_INST_CLOSE_FILE):
+ instCallback.d.close ()
(h, method) = key
intf.completePackage(h)
else: