diff options
author | Francois Pons <fpons@mandriva.com> | 2001-03-07 14:58:09 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-03-07 14:58:09 +0000 |
commit | 334bc630fd348914458b31ce3f6f19e63b232e61 (patch) | |
tree | 09f1c4585bac5985f2160e4d9d16f29055fd7d96 | |
parent | 7c3b335fbd6e7b65e7895f0876f20586a3a8ac6f (diff) | |
download | urpmi-334bc630fd348914458b31ce3f6f19e63b232e61.tar urpmi-334bc630fd348914458b31ce3f6f19e63b232e61.tar.gz urpmi-334bc630fd348914458b31ce3f6f19e63b232e61.tar.bz2 urpmi-334bc630fd348914458b31ce3f6f19e63b232e61.tar.xz urpmi-334bc630fd348914458b31ce3f6f19e63b232e61.zip |
*** empty log message ***
-rwxr-xr-x | urpmi | 9 | ||||
-rw-r--r-- | urpmi.spec | 5 |
2 files changed, 11 insertions, 3 deletions
@@ -109,6 +109,8 @@ open SAVEOUT, ">&STDOUT"; select SAVEOUT; $| = 1; open SAVEERR, ">&STDERR"; select SAVEERR; $| = 1; unless ($pid_out = open STDOUT, "|-") { open F, ">>/var/log/urpmi.log"; select F; $| = 1; + select SAVEOUT; $| = 1; + $/ = \1; while (<STDIN>) { print SAVEOUT $_; print F $_; @@ -118,6 +120,8 @@ unless ($pid_out = open STDOUT, "|-") { } unless ($pid_err = open STDERR, "|-") { open F, ">>/var/log/urpmi.log"; select F; $| = 1; + select SAVEERR; $| = 1; + $/ = \1; while (<STDIN>) { print SAVEERR $_; print F $_; @@ -268,8 +272,9 @@ install(@sources); #- this help flushing correctly by closing this file before (piped on tee). #- but killing them is generally better. -kill 15, $pid_err; close STDERR; -kill 15, $pid_out; close STDOUT; +fork() or do { sleep 1; kill 15, $pid_err, $pid_out }; +close STDERR; +close STDOUT; sub install { @_ or return; @@ -2,7 +2,7 @@ Name: urpmi Version: 1.5 -Release: 17mdk +Release: 18mdk License: GPL Source0: %{name}.tar.bz2 Summary: User mode rpm install @@ -113,6 +113,9 @@ autoirpm.uninstall %changelog +* Wed Mar 7 2001 François Pons <fpons@mandrakesoft.com> 1.5-18mdk +- fixed last line not printed for rpm output. + * Mon Mar 5 2001 François Pons <fpons@mandrakesoft.com> 1.5-17mdk - fixed ask choices for urpmi -m mode. - changed default behaviour to abort transaction on error. |