summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-20 12:29:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-20 12:29:23 +0000
commit54e8e1c42eb12a5c920d7cd275ba25ab81186187 (patch)
tree2acf50a0bdc079c5898096e28b8541dfcf35f893
parent70334ee21d9891cf64fa48e423c5128250e7397b (diff)
downloadurpmi-54e8e1c42eb12a5c920d7cd275ba25ab81186187.tar
urpmi-54e8e1c42eb12a5c920d7cd275ba25ab81186187.tar.gz
urpmi-54e8e1c42eb12a5c920d7cd275ba25ab81186187.tar.bz2
urpmi-54e8e1c42eb12a5c920d7cd275ba25ab81186187.tar.xz
urpmi-54e8e1c42eb12a5c920d7cd275ba25ab81186187.zip
make translate_message the default in install() since we always use it
-rwxr-xr-xgurpmi21
-rw-r--r--urpm.pm6
-rw-r--r--urpme2
-rwxr-xr-xurpmi1
4 files changed, 6 insertions, 4 deletions
diff --git a/gurpmi2 b/gurpmi2
index 12aa722c..12fa0e69 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -298,7 +298,6 @@ sub do_install_3 () {
$set->{remove} || [],
\%transaction_sources_install,
\%transaction_sources,
- translate_message => 1,
oldpackage => $state->{oldpackage},
callback_inst => $callback_inst,
callback_trans => $callback_inst,
diff --git a/urpm.pm b/urpm.pm
index f7958272..2076d32c 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2853,9 +2853,15 @@ sub install_logger {
}
#- install packages according to each hash (remove, install or upgrade).
+#- options:
+#- test, excludepath, nodeps, noorder (unused), delta,
+#- callback_open, callback_close, callback_inst, callback_trans, post_clean_cache
+#- (more options for trans->run)
+#- excludedocs, nosize, noscripts, oldpackage, repackage, ignorearch
sub install {
my ($urpm, $remove, $install, $upgrade, %options) = @_;
my %readmes;
+ $options{translate_message} = 1;
my $db = db_open_or_die($urpm, $urpm->{root}, !$options{test}); #- open in read/write mode unless testing installation.
diff --git a/urpme b/urpme
index 94a05d2f..f45fb8e1 100644
--- a/urpme
+++ b/urpme
@@ -134,7 +134,6 @@ print N("removing %s", join(' ', sort @toremove)) . "\n";
\@toremove,
test => $test,
force => $force,
- translate_message => 1,
noscripts => $noscripts,
repackage => $repackage || $urpm->{options}{repackage},
)
@@ -142,7 +141,6 @@ print N("removing %s", join(' ', sort @toremove)) . "\n";
\@toremove, {}, {},
test => $test,
force => $force,
- translate_message => 1,
noscripts => $noscripts,
repackage => $repackage || $urpm->{options}{repackage},
);
diff --git a/urpmi b/urpmi
index b0ee9cda..7eba9c16 100755
--- a/urpmi
+++ b/urpmi
@@ -718,7 +718,6 @@ foreach my $set (@{$state->{transaction} || []}) {
excludedocs => $urpm->{options}{excludedocs},
repackage => $urpm->{options}{repackage},
post_clean_cache => $urpm->{options}{'post-clean'},
- translate_message => 1,
oldpackage => $state->{oldpackage},
nosize => $urpm->{options}{ignoresize},
ignorearch => $urpm->{options}{ignorearch},