summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-13 17:15:23 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-13 17:15:23 +0000
commit0d60b7c2896f57bcb63f5a31e8b1dd7c9fc716a3 (patch)
tree8e03fdbec74c39b1c95cd9be604cda3e3ac7bcf3 /perl-install
parent039e38f840a775d407c3cede6cc0913e9d16968d (diff)
downloaddrakx-0d60b7c2896f57bcb63f5a31e8b1dd7c9fc716a3.tar
drakx-0d60b7c2896f57bcb63f5a31e8b1dd7c9fc716a3.tar.gz
drakx-0d60b7c2896f57bcb63f5a31e8b1dd7c9fc716a3.tar.bz2
drakx-0d60b7c2896f57bcb63f5a31e8b1dd7c9fc716a3.tar.xz
drakx-0d60b7c2896f57bcb63f5a31e8b1dd7c9fc716a3.zip
(media_screen) prevent unselecting 'Main Release' on mdv server too
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm
index 4a4be81c2..861b49f78 100644
--- a/perl-install/install/any.pm
+++ b/perl-install/install/any.pm
@@ -377,7 +377,7 @@ sub media_screen {
val => \$medium->{temp_enabled}, type => 'bool', text => $name,
help => $medium->{update} ? N("This medium provides package updates for medium \"%s\"", $parent) : $descriptions{$name},
# 'Core Release' cannot be unselected:
- disabled => sub { $name eq 'Core Release' },
+ disabled => sub { $name =~ /^(?:Core|Main) Release$/ },
};
} @{$urpm->{media}},
]);