Commit a6c49da6 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(ISO): update Fedora releases

parent 3d9379d0
......@@ -572,6 +572,8 @@ sub _update_isos {
}
sub _scheduled_fedora_releases($self,$data) {
my $vm = $self->search_vm('KVM');
my @now = localtime(time);
my $year = $now[5]+1900;
my $month = $now[4]+1;
......@@ -583,6 +585,7 @@ sub _scheduled_fedora_releases($self,$data) {
= 'http://ftp.halifax.rwth-aachen.de/fedora/linux/releases/';
my $release = 27;
for my $y ( 2018 .. $year ) {
for my $m ( 5, 11 ) {
return if $y == $year && $m>$month;
......@@ -593,13 +596,25 @@ sub _scheduled_fedora_releases($self,$data) {
my $url = $url_archive;
$url = $url_current if $y>=$year-1;
my $url_file = $url.$release
.'/Workstation/x86_64/iso/Fedora-Workstation-.*-x86_64-'.$release
.'-.*\.iso';
my @found = $vm->_search_url_file($url_file);
if(!@found) {
next if $url =~ m{//archives};
$url_file = $url_archive.$release
.'/Workstation/x86_64/iso/Fedora-Workstation-.*-x86_64-'.$release
.'-.*\.iso';
@found = $vm->_search_url_file($url_file);
next if !scalar(@found);
}
$data->{$name} = {
name => 'Fedora '.$release
,description => "RedHat Fedora $release Workstation 64 bits"
,url => $url.$release
.'/Workstation/x86_64/iso/Fedora-Workstation-.*-x86_64-'.$release
.'-.*\.iso'
,arch => 'amd64'
,url => $url_file
,xml => 'xenial64-amd64.xml'
,xml_volume => 'xenial64-volume.xml'
,sha256_url => '$url/Fedora-Workstation-'.$release.'-.*-x86_64-CHECKSUM'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment