Skip to content

Commit

Permalink
[#457] remove old debian 9 link
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Nov 9, 2017
1 parent cf1df5f commit d592f9c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Ravada;
use warnings;
use strict;

our $VERSION = '0.2.11';
our $VERSION = '0.2.11-beta2';

use Carp qw(carp croak);
use Data::Dumper;
Expand Down Expand Up @@ -533,9 +533,19 @@ sub _update_table($self, $table, $field, $data) {
}
}

sub _remove_old_isos {
my $self = shift;
my $sth = $CONNECTOR->dbh->prepare("DELETE FROM iso_images "
." WHERE url like '%debian-9.0%iso'"
);
$sth->execute();
$sth->finish;
}

sub _update_data {
my $self = shift;

$self->_remove_old_isos();
$self->_update_isos();
$self->_update_user_grants();
$self->_update_domain_drivers_types();
Expand Down

0 comments on commit d592f9c

Please sign in to comment.