diff options
author | Eric Kerin <eric_kerin@jabil.com> | 2009-07-14 09:09:32 -0400 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2009-07-16 11:13:57 -0400 |
commit | 84eb43117da7d22e23d6b007622b68d946972bf4 (patch) | |
tree | c8ac811c801f245fa9d1b60fb35d8caf37b31ab0 /gui.py | |
parent | 4aa290945425bea0733f73259b9adf4d6a95c6f5 (diff) | |
download | anaconda-84eb43117da7d22e23d6b007622b68d946972bf4.tar.gz anaconda-84eb43117da7d22e23d6b007622b68d946972bf4.tar.xz anaconda-84eb43117da7d22e23d6b007622b68d946972bf4.zip |
Don't show formatting progress bar after mkfs has exited.
mke2fs will finish it's work quickly, and anaconda will spend quite
sometime reading in the output, and updating the progress dialog in
certain cases - the attached patch adds a check to the read/progress
loop to check to see if the process has finished, and jumps out early
if that's the case.
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -521,7 +521,10 @@ class ProgressWindow: return self.progress.set_pulse_step(self.updpct) self.lastUpdate = now - # if we've had a largish gap, some smoothing does actually help. + # if we've had a largish gap, some smoothing does actually help, + # but don't go crazy + if delta > 2: + delta=2 while delta > 0: self.progress.pulse() processEvents() |