diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-06 17:52:12 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-06 17:52:12 +0000 |
commit | 46c3e595929702ff879c1228b17a7e33772a97cf (patch) | |
tree | c968e83962600fd48243d57ff0d34289a6e55a54 /draklive | |
parent | cf698f96f53513e13f8d9e2e4b62ba23c6ef090b (diff) | |
download | drakiso-46c3e595929702ff879c1228b17a7e33772a97cf.tar drakiso-46c3e595929702ff879c1228b17a7e33772a97cf.tar.gz drakiso-46c3e595929702ff879c1228b17a7e33772a97cf.tar.bz2 drakiso-46c3e595929702ff879c1228b17a7e33772a97cf.tar.xz drakiso-46c3e595929702ff879c1228b17a7e33772a97cf.zip |
add newline before printing normal output
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1085,13 +1085,17 @@ sub create_cdrom_master { mkdir_p(dirname($dest)); } my $progress = progress_start(100, time()); + my $in_progress; autoflush STDOUT 1; run_foreach(sub { if (/^\s*([0-9.]+)%\s*done,/) { $progress->{current} = int($1); progress_show($progress, time()); + $in_progress = 1; } else { + print "\n" if $in_progress; print $_; + $in_progress = 0; } }, 'genisoimage', '-pad', '-l', '-R', '-J', |