Commit 6b30ed12 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#335] rename field for iso images

It was first implemented for Xubuntu releases, all
the ISO files were called mini.iso
parent 22d7995c
......@@ -198,8 +198,9 @@ sub _update_isos {
,arch => 'amd64'
,xml => 'yakkety64-amd64.xml'
,xml_volume => 'yakkety64-volume.xml'
,md5 => '6bd80e10bf223a04d3aafe0f997d046b'
,md5_url => 'http://archive.ubuntu.com/ubuntu/dists/zesty/main/installer-amd64/current/images/MD5SUMS'
,url => 'http://archive.ubuntu.com/ubuntu/dists/zesty/main/installer-amd64/current/images/netboot/mini.iso'
,rename_file => 'xubuntu_zesty_mini.iso'
}
,xubuntu_xenial => {
name => 'Xubuntu Xenial Xerus'
......@@ -208,6 +209,7 @@ sub _update_isos {
,xml => 'yakkety64-amd64.xml'
,xml_volume => 'yakkety64-volume.xml'
,md5 => 'fe495d34188a9568c8d166efc5898d22'
,rename_file => 'xubuntu_xenial_mini.iso'
}
,lubuntu_zesty => {
name => 'Lubuntu Zesty Zapus'
......@@ -220,7 +222,8 @@ sub _update_isos {
,lubuntu_xenial => {
name => 'Lubuntu Xenial Xerus'
,description => 'Xubuntu 16.04 Xenial Xerus 64 bits (LTS)'
,url => 'http://cdimage.ubuntu.com/lubuntu/releases/16.04.2/release/lubuntu-16.04.2-desktop-amd64.iso'
,url => 'http://cdimage.ubuntu.com/lubuntu/releases/16.04.2/release/'
,file_re => 'lubuntu-16.04.2-desktop-amd64.iso'
,md5_url => 'http://cdimage.ubuntu.com/lubuntu/releases/16.04.2/release/MD5SUMS'
,xml => 'yakkety64-amd64.xml'
,xml_volume => 'yakkety64-volume.xml'
......@@ -600,6 +603,12 @@ sub _create_tables {
closedir $ls;
}
sub _clean_iso_mini {
my $sth = $CONNECTOR->dbh->prepare("DELETE FROM iso_images WHERE device like ?");
$sth->execute('%/mini.iso');
$sth->finish;
}
sub _upgrade_tables {
my $self = shift;
# return if $CONNECTOR->dbh->{Driver}{Name} !~ /mysql/i;
......@@ -611,11 +620,13 @@ sub _upgrade_tables {
$self->_upgrade_table('requests','at_time','int(11) DEFAULT NULL');
$self->_clean_iso_mini();
$self->_upgrade_table('iso_images','md5_url','varchar(255)');
$self->_upgrade_table('iso_images','sha256','varchar(255)');
$self->_upgrade_table('iso_images','sha256_url','varchar(255)');
$self->_upgrade_table('iso_images','file_re','char(64)');
$self->_upgrade_table('iso_images','device','varchar(255)');
$self->_upgrade_table('iso_images','rename_file','varchar(80) DEFAULT NULL');
$self->_upgrade_table('users','language','char(3) DEFAULT NULL');
if ( $self->_upgrade_table('users','is_external','int(11) DEFAULT 0')) {
......
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