From 0d60b7c2896f57bcb63f5a31e8b1dd7c9fc716a3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 13 Dec 2012 17:15:23 +0000 Subject: (media_screen) prevent unselecting 'Main Release' on mdv server too --- perl-install/install/any.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}}, ]); -- cgit v1.2.1