generated from smedev/Template-for-SMEServer-Core-Package
initial
This commit is contained in:
28
root/etc/e-smith/db/configuration/migrate/smeserver-update
Normal file
28
root/etc/e-smith/db/configuration/migrate/smeserver-update
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
# 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');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user