summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-07-25 13:43:35 +0000
committerFrancois Pons <fpons@mandriva.com>2003-07-25 13:43:35 +0000
commit4996357ee08817d0d7df5dc440a4788f133a742e (patch)
treefbd4c4373bfa1495bbf2d4268ca6c2e476654295
parente049d832591301a941d688a6042462f08ecc9b59 (diff)
downloadurpmi-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-xurpmi5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index 5ce58240..afeeeeab 100755
--- a/urpmi
+++ b/urpmi
@@ -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;