summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-11 12:14:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-11 12:14:13 +0000
commit25428f578665a94d873ea496da130059fee47fef (patch)
tree4d592d7daaa4001713121679c0a8dcad0460db64 /urpm/install.pm
parent58c4003c40a63ce57cc587b4651926c3a34c3632 (diff)
downloadurpmi-25428f578665a94d873ea496da130059fee47fef.tar
urpmi-25428f578665a94d873ea496da130059fee47fef.tar.gz
urpmi-25428f578665a94d873ea496da130059fee47fef.tar.bz2
urpmi-25428f578665a94d873ea496da130059fee47fef.tar.xz
urpmi-25428f578665a94d873ea496da130059fee47fef.zip
- urpmi
o fix --quiet (regression introduced in 4.9.28)
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 5f960b0d..b758923c 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -127,9 +127,9 @@ sub get_README_files {
#- install packages according to each hash (remove, install or upgrade).
#- options:
#- test, excludepath, nodeps, noorder (unused), delta,
-#- callback_inst, callback_trans, post_clean_cache
+#- callback_inst, callback_trans, post_clean_cache, verbose
#- (more options for trans->run)
-#- excludedocs, nosize, noscripts, oldpackage, repackage, ignorearch
+#- excludedocs, nosize, noscripts, oldpackage, repackage, replacepkgs, ignorearch
sub install {
my ($urpm, $remove, $install, $upgrade, %options) = @_;
$options{translate_message} = 1;
@@ -204,12 +204,12 @@ sub install {
if (member($name, @previous)) {
$urpm->{log}("removing upgraded package $fullname");
} else {
- print N("removing package %s", $fullname), "\n" if $::verbose >= 0;
+ print N("removing package %s", $fullname), "\n" if $options{verbose} >= 0;
}
$index++;
}
};
- if ($::verbose >= 0 && (scalar keys %$install || scalar keys %$upgrade)) {
+ if ($options{verbose} >= 0 && (scalar keys %$install || scalar keys %$upgrade)) {
$options{callback_inst} ||= \&install_logger;
$options{callback_trans} ||= \&install_logger;
}
@@ -223,7 +223,7 @@ sub install {
unlink "$urpm->{cachedir}/rpms/$_" foreach @pkgs;
}
- if ($::verbose >= 0) {
+ if ($options{verbose} >= 0) {
foreach (keys %{$urpm->{readmes}}) {
print "-" x 70, "\n", N("More information on package %s", $urpm->{readmes}{$_}), "\n";
print cat_(($urpm->{root} || '') . $_);