smeserver-update/root/etc/e-smith/db/yum_repositories/migrate/39VisibleSmeContribs
Jean-Philippe Pialasse 163fd5ca9d * Wed Mar 27 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-5.sme
- rewrite smeserver.py plugin [SME: 12113]
- fix migrate template 39VisibleSmeContribs, 45RockyEOL [SME: 12549]
2024-04-04 17:20:45 -04:00

11 lines
379 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-1?[0789]{1}$};
$repo->set_prop('status', 'enabled');
$repo->set_prop('Visible', 'yes');
}
}