generated from smedev/Template-for-SMEServer-Core-Package
Jean-Philippe Pialasse
163fd5ca9d
- rewrite smeserver.py plugin [SME: 12113] - fix migrate template 39VisibleSmeContribs, 45RockyEOL [SME: 12549]
11 lines
379 B
Plaintext
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');
|
|
}
|
|
}
|