2024-03-25 22:44:36 +01:00
|
|
|
{
|
|
|
|
# migrate from yum to dnf key
|
|
|
|
my $yum = $DB->get("yum");
|
|
|
|
if ($yum){
|
|
|
|
my $dnf = $DB->get("dnf") ||
|
|
|
|
$DB->new_record("dnf", { type => "service" });
|
|
|
|
$dnf->merge_props($yum->props);
|
|
|
|
$yum->delete;
|
|
|
|
}
|
|
|
|
|
|
|
|
# tidy EOL tag
|
|
|
|
use POSIX qw(strftime);
|
|
|
|
my $curdate = strftime '%Y%m%d', localtime;
|
|
|
|
my $curVers = 8;
|
|
|
|
my $curVersEOL = 20290531;
|
|
|
|
# we remove the forced value if for a previous release;
|
|
|
|
# also if not after the eol date
|
|
|
|
my $dropit = $DB->get_prop_and_delete('dnf','eolversion') if ( (substr($dnf{eolversion},0,1)<$curVers) || ( "$curdate" < "$curVersEOL") );
|
|
|
|
|
|
|
|
# Added for bug 8855 and bug 8858
|
|
|
|
# we want to remove the property check4contribsupdates
|
|
|
|
my $check4contribsupdates = $DB->get_prop('dnf','check4contribsupdates');
|
|
|
|
if ($check4contribsupdates) {
|
|
|
|
$DB->get('dnf')->delete_prop('check4contribsupdates');
|
|
|
|
}
|
2024-03-26 03:42:14 +01:00
|
|
|
my $output_width = $DB->get_prop('dnf','output_width');
|
|
|
|
if ($output_width) {
|
|
|
|
$DB->get('dnf')->delete_prop('output_width');
|
|
|
|
}
|
|
|
|
|
2024-03-25 22:44:36 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|