summaryrefslogtreecommitdiffstats
path: root/perl-install/install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-03-13 09:24:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-03-13 09:24:20 +0000
commit45fb3f6b0be0b79a1c00d6da8c9ac21932070da9 (patch)
tree8ae55d7884beb685430cb3ceb9c5a68c7a334623 /perl-install/install/any.pm
parent3399bb433c44191e52445e38601470c53b0fcd7b (diff)
downloaddrakx-45fb3f6b0be0b79a1c00d6da8c9ac21932070da9.tar
drakx-45fb3f6b0be0b79a1c00d6da8c9ac21932070da9.tar.gz
drakx-45fb3f6b0be0b79a1c00d6da8c9ac21932070da9.tar.bz2
drakx-45fb3f6b0be0b79a1c00d6da8c9ac21932070da9.tar.xz
drakx-45fb3f6b0be0b79a1c00d6da8c9ac21932070da9.zip
- do not propose to upgrade non-mandriva and non-conectiva distros (#38408)
Diffstat (limited to 'perl-install/install/any.pm')
-rw-r--r--perl-install/install/any.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm
index da61cc957..a663d30f3 100644
--- a/perl-install/install/any.pm
+++ b/perl-install/install/any.pm
@@ -940,6 +940,13 @@ sub generate_automatic_stage1_params {
sub find_root_parts {
my ($fstab, $prefix) = @_;
+ grep { $_->{release} =~ /\b(mandrake|mandriva|conectiva)\b/i }
+ _find_root_parts($fstab, $prefix);
+}
+
+sub _find_root_parts {
+ my ($fstab, $prefix) = @_;
+
if ($::local_install) {
my $f = common::release_file('/mnt') or return;
return common::parse_release_file('/mnt', $f, {});