summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps.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.pm
parentf9b8c020f93d96f52c734eba139e06b59d6a820f (diff)
downloaddrakx-backup-do-not-use-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.tar
drakx-backup-do-not-use-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.tar.gz
drakx-backup-do-not-use-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.tar.bz2
drakx-backup-do-not-use-73e9459062f85bca8adef6976df8d4a6f2dbbbe0.tar.xz
drakx-backup-do-not-use-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.pm')
-rw-r--r--perl-install/install/steps.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index e669a3790..518ef8d18 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -175,6 +175,7 @@ sub selectInstallClass {
# either one root is defined (and all is ok), or we take the first one we find
my $p = fs::get::root_($o->{fstab}) || (first(install::any::find_root_parts($o->{fstab}, $::prefix)) || die)->{part};
$o->{migrate_device_names} = install::any::use_root_part($o->{all_hds}, $p);
+ $o->{previous_release} = $p if $o->{isUpgrade};
}
}