diff options
author | Francois Pons <fpons@mandriva.com> | 2003-07-25 13:43:35 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-07-25 13:43:35 +0000 |
commit | 4996357ee08817d0d7df5dc440a4788f133a742e (patch) | |
tree | fbd4c4373bfa1495bbf2d4268ca6c2e476654295 | |
parent | e049d832591301a941d688a6042462f08ecc9b59 (diff) | |
download | urpmi-4996357ee08817d0d7df5dc440a4788f133a742e.tar urpmi-4996357ee08817d0d7df5dc440a4788f133a742e.tar.gz urpmi-4996357ee08817d0d7df5dc440a4788f133a742e.tar.bz2 urpmi-4996357ee08817d0d7df5dc440a4788f133a742e.tar.xz urpmi-4996357ee08817d0d7df5dc440a4788f133a742e.zip |
added removing log, make installtion log conditional.
-rwxr-xr-x | urpmi | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -667,7 +667,10 @@ foreach my $set (@{$state->{transaction} || []}) { test => $test, excludepath => $urpm->{options}{excludepath}, excludedocs => $urpm->{options}{excludedocs}); } else { - message(N("installing %s", join(' ', values %transaction_sources_install, values %transaction_sources)), 'noX'); + %transaction_sources_install || %transaction_sources and + message(N("installing %s", join(' ', values %transaction_sources_install, values %transaction_sources)), 'noX'); + @{!$urpm->{options}{'allow-force'} && $set->{remove} || []} and + message(N("removing %s", join(' ', @{!$urpm->{options}{'allow-force'} && $set->{remove} || []})), 'noX'); log_it(scalar localtime, " ", join(' ', values %transaction_sources_install, values %transaction_sources), "\n"); $urpm->{log}("starting installing packages"); my $progress_nb; |