/[smeserver]/rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz10716.smecontribsvisible.patch
ViewVC logotype

Diff of /rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz10716.smecontribsvisible.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Thu Dec 5 04:41:14 2019 UTC Revision 1.2 by jpp, Thu Dec 5 15:27:49 2019 UTC
# Line 4  diff -Nur smeserver-yum-2.6.0.old/root/e Line 4  diff -Nur smeserver-yum-2.6.0.old/root/e
4  @@ -1 +1 @@  @@ -1 +1 @@
5  -no  -no
6  +yes  +yes
7    diff -Nur smeserver-yum-2.6.0.old/root/etc/e-smith/db/yum_repositories/migrate/39VisibleSmeContribs smeserver-yum-2.6.0/root/etc/e-smith/db/yum_repositories/migrate/39VisibleSmeContribs
8    --- smeserver-yum-2.6.0.old/root/etc/e-smith/db/yum_repositories/migrate/39VisibleSmeContribs   1969-12-31 19:00:00.000000000 -0500
9    +++ smeserver-yum-2.6.0/root/etc/e-smith/db/yum_repositories/migrate/39VisibleSmeContribs       2019-12-05 10:25:47.286000000 -0500
10    @@ -0,0 +1,9 @@
11    +{
12    +    for my $name ( qw(smecontribs) )
13    +    {
14    +        my $repo = $DB->get($name) or next;
15    +        #only migrate if restore from previous SME version, we do not want to override an admin setting for current version.
16    +        return unless $repo->prop('MirrorList') =~ m{/$name-[789]$};
17    +        $repo->set_prop('Visible', 'yes');
18    +    }
19    +}


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed