smeserver-update/root/etc/e-smith/db/yum_repositories/migrate/39VisibleSmeContribs

11 lines
379 B
Plaintext
Raw Normal View History

2024-03-25 22:44:36 +01:00
{
for my $name ( qw(smecontribs) )
{
my $repo = $DB->get($name) or next;
#only migrate if restore from previous SME version, we do not want to override an admin setting for current version.
return unless $repo->prop('MirrorList') =~ m{/$name-1?[0789]{1}$};
$repo->set_prop('status', 'enabled');
2024-03-25 22:44:36 +01:00
$repo->set_prop('Visible', 'yes');
}
}