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

10 lines
334 B
Plaintext

{
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-[789]$};
$repo->set_prop('Visible', 'yes');
}
}