smeserver-yum/root/etc/e-smith/db/configuration/migrate/Yum-remove-previous-eolversion

10 lines
375 B
Plaintext

{
use POSIX qw(strftime);
my $curdate = strftime '%Y%m%d', localtime;
my $curVers = 7;
my $curVersEOL = 20240630;
# we remove the forced value if for a previous release;
# also if not after the eol date
my $dropit = $DB->get_prop_and_delete('yum','eolversion') if ( (substr($yum{eolversion},0,1)<$curVers) || ( "$curdate" < "$curVersEOL") );
}