/[smeserver]/rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz9388.no-double-contribs-check.patch
ViewVC logotype

Contents of /rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz9388.no-double-contribs-check.patch

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


Revision 1.2 - (show annotations) (download)
Mon Jul 11 15:20:40 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
bump version

1 diff -Nur smeserver-yum-2.6.0.old/root/etc/e-smith/templates/etc/crontab/check4contribsupdates smeserver-yum-2.6.0/root/etc/e-smith/templates/etc/crontab/check4contribsupdates
2 --- smeserver-yum-2.6.0.old/root/etc/e-smith/templates/etc/crontab/check4contribsupdates 2016-02-05 18:19:58.000000000 -0500
3 +++ smeserver-yum-2.6.0/root/etc/e-smith/templates/etc/crontab/check4contribsupdates 2019-01-23 20:32:05.803000000 -0500
4 @@ -1,5 +1,10 @@
5 {
6 - return "\n# yum check for smecontribs updates is disabled\n" unless (($yum{status} eq 'enabled') && ($yum{CheckContribs} eq 'enabled'));
7 + use esmith::ConfigDB;
8 + my $ydb = esmith::ConfigDB->open_ro('yum_repositories')
9 + or die "Couldn't open yum_repositories";
10 + my $smecontribs=$ydb->get_prop('smecontribs','status') || 'disabled';
11 +
12 + return "\n# yum check for smecontribs updates is disabled\n" unless ( ($yum{status} eq 'enabled') && ($yum{CheckContribs} eq 'enabled') && ($smecontribs eq 'disabled') );
13
14 my $freq = $yum{check4updates} || 'daily';
15

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