summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-01 16:13:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-01 16:13:40 +0000
commit73e9459062f85bca8adef6976df8d4a6f2dbbbe0 (patch)
treeeabc1b7087d327714d1837a563fdaa75a137387a /perl-install/install/steps_interactive.pm
parentf9b8c020f93d96f52c734eba139e06b59d6a820f (diff)
downloaddrakx-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.tar
drakx-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.tar.gz
drakx-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.tar.bz2
drakx-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.tar.xz
drakx-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.zip
- keep in $o->{previous_release} the info about upgraded /etc/release,
and pass "reason" and version to urpmi.addmedia - we also parse {version} field out of /etc/release
Diffstat (limited to 'perl-install/install/steps_interactive.pm')
-rw-r--r--perl-install/install/steps_interactive.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/steps_interactive.pm b/perl-install/install/steps_interactive.pm
index 231c3960a..84fc58889 100644
--- a/perl-install/install/steps_interactive.pm
+++ b/perl-install/install/steps_interactive.pm
@@ -171,6 +171,7 @@ sub selectInstallClass {
hidden => 1, val => \$_->{encrypt_key} } ]);
}
+ $o->{previous_release} = $p;
$o->{isUpgrade} = (find { $p->{release_file} =~ /$_/ } 'mandriva', 'mandrake', 'conectiva', 'redhat') || 'unknown';
$o->{upgrade_by_removing_pkgs_matching} ||= {
conectiva => 'cl',
@@ -761,7 +762,7 @@ Do you want to install the updates?")),
#- bring all interface up for installing updates packages.
install::interactive::upNetwork($o);
- if (any::urpmi_add_all_media($o)) {
+ if (any::urpmi_add_all_media($o, $o->{previous_release})) {
my $binary = find { whereis_binary($_, $::prefix) } 'gurpmi2', 'urpmi' or return;
run_program::rooted($::prefix, $binary, '--auto-select', '--update');
}