/[smeserver]/rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz10249.CentOSVault.onEOL.patch
ViewVC logotype

Contents of /rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz10249.CentOSVault.onEOL.patch

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


Revision 1.1 - (show annotations) (download)
Thu Dec 5 15:20:26 2019 UTC (4 years, 6 months ago) by jpp
Branch: MAIN
* Wed Dec 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-23.sme
- implement yum-cron [SME: 10690]
  * use yum-cron for download only (TODO)
  * yum-cron templates  (TODO)
  * update lock path (TODO)
  * setting in server-manager (TODO)
- avoid discrepancy between manager, cli and email [SME: 6940]
  * force refresh of metadata before db generation (TODO)
  * add regeneration of db after...  (TODO)
- fix There is no installed groups file [SME: 118] (TODO)
- switch to centos vault after EOL [SME: 10249]
- update http://mirrorlist.contribs.org/mirrorlist to https://mirrorlist.koozali.org/mirrorlist [SME: 9697]
- make smecontribs visible [SME: 10716]

1 diff -Nur smeserver-yum-2.6.0.old/root/etc/e-smith/db/yum_repositories/migrate/45CentOSEOL smeserver-yum-2.6.0/root/etc/e-smith/db/yum_repositories/migrate/45CentOSEOL
2 --- smeserver-yum-2.6.0.old/root/etc/e-smith/db/yum_repositories/migrate/45CentOSEOL 1969-12-31 19:00:00.000000000 -0500
3 +++ smeserver-yum-2.6.0/root/etc/e-smith/db/yum_repositories/migrate/45CentOSEOL 2019-12-05 10:15:48.300000000 -0500
4 @@ -0,0 +1,19 @@
5 +{
6 + use POSIX qw(strftime);
7 + use File::Slurp;
8 + #get CentOS release we are
9 + my $SUBVER = read_file('/etc/centos-release');
10 + $SUBVER =~ s/^CentOS Linux release ([0-9\.]+).*?$/$1/;
11 + return unless $1;
12 + my $curdate = strftime '%Y%m%d', localtime;
13 + # return unless EOL is reached
14 + return unless ( "$curdate" >= "20240630");
15 + for my $name ( qw(base updates centos-sclo-centos centos-sclo-rh centosplus extras fasttrack) )
16 + {
17 + my $repo = $DB->get($name) or next;
18 + # setprop BaseURL "http://vault.centos.org/$SUBVER/$name/\$basearch/"
19 + #repo->set_prop('BaseURL', "http://vault.centos.org/$SUBVER/$name/\$basearch/");
20 + # delprop MirrorList
21 + $repo->delete_prop('MirrorList');
22 + }
23 +}

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