summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-03 13:07:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-03 13:07:22 +0000
commit73dea3e1611694cc346137d5d389cca3b9117434 (patch)
treec2f3000a9d0834c00ceb80bf7d6a9f2f4e5b354d /urpm/install.pm
parent4e24ae62191415acccc30c921bdbcca16e4a9fe3 (diff)
downloadurpmi-73dea3e1611694cc346137d5d389cca3b9117434.tar
urpmi-73dea3e1611694cc346137d5d389cca3b9117434.tar.gz
urpmi-73dea3e1611694cc346137d5d389cca3b9117434.tar.bz2
urpmi-73dea3e1611694cc346137d5d389cca3b9117434.tar.xz
urpmi-73dea3e1611694cc346137d5d389cca3b9117434.zip
- library
o urpm::install: export %readmes so that rpmdrake can access it
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 189e96f8..f8a9ebb6 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -147,7 +147,7 @@ sub install {
if (!$options{nodeps} && (@l = $trans->check(%options))) {
} elsif (!$options{noorder} && (@l = $trans->order)) {
} else {
- my %readmes;
+ $urpm->{readmes} = {};
my $index;
my $fh;
#- assume default value for some parameter.
@@ -164,7 +164,7 @@ sub install {
my $pkg = $urpm->{depslist}[$pkgid];
my $fullname = $pkg->fullname;
my $trtype = $pkg->flag_installed ? '(upgrade|update)' : 'install';
- foreach ($pkg->files) { /\bREADME(\.$trtype)?\.urpmi$/ and $readmes{$_} = $fullname }
+ foreach ($pkg->files) { /\bREADME(\.$trtype)?\.urpmi$/ and $urpm->{readmes}{$_} = $fullname }
close $fh if defined $fh;
};
$options{callback_uninst} = sub {
@@ -197,7 +197,7 @@ sub install {
}
if ($::verbose >= 0) {
- foreach (keys %readmes) {
+ foreach (keys %{$urpm->{readmes}}) {
print "-" x 70, "\n", N("More information on package %s", $readmes{$_}), "\n";
print cat_(($urpm->{root} || '') . $_);
print "-" x 70, "\n";