diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-04-23 15:54:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-04-23 15:54:10 +0000 |
commit | 2f2093fdc69e6e6d30bb9471e311cc1794df91b8 (patch) | |
tree | 8ea5cf31c2c033b9174c284e1c56304b05b39500 /perl-install/install/steps_interactive.pm | |
parent | 1dfa428e543aa5b4cbfe1704d0c2bc5d8a71525d (diff) | |
download | drakx-backup-do-not-use-2f2093fdc69e6e6d30bb9471e311cc1794df91b8.tar drakx-backup-do-not-use-2f2093fdc69e6e6d30bb9471e311cc1794df91b8.tar.gz drakx-backup-do-not-use-2f2093fdc69e6e6d30bb9471e311cc1794df91b8.tar.bz2 drakx-backup-do-not-use-2f2093fdc69e6e6d30bb9471e311cc1794df91b8.tar.xz drakx-backup-do-not-use-2f2093fdc69e6e6d30bb9471e311cc1794df91b8.zip |
(selectInstallClass) fix not offering to upgrade 32 bit installations
(regression introduced by pterjan in r255238 on 2009-03-31: "Don't list
installed distros with other archs as ugrading betweenarchs is not supported")
Diffstat (limited to 'perl-install/install/steps_interactive.pm')
-rw-r--r-- | perl-install/install/steps_interactive.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/steps_interactive.pm b/perl-install/install/steps_interactive.pm index 6e8d8a020..27748413a 100644 --- a/perl-install/install/steps_interactive.pm +++ b/perl-install/install/steps_interactive.pm @@ -127,7 +127,8 @@ sub selectInstallClass { my @l = install::any::find_root_parts($o->{fstab}, $::prefix); # Don't list other archs as ugrading between archs is not supported - @l = grep { $_->{arch} eq arch() } @l; + my $arch = arch() =~ /i.86/ ? $MDK::Common::System::compat_arch{arch()} : arch(); + @l = grep { $_->{arch} eq $arch } @l; if (@l) { log::l("proposing to upgrade partitions " . join(" ", map { $_->{part} && $_->{part}{device} } @l)); |