aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/MGA/Mirrors/DB.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MGA/Mirrors/DB.pm b/lib/MGA/Mirrors/DB.pm
index 8f66ac1..4e71e5b 100644
--- a/lib/MGA/Mirrors/DB.pm
+++ b/lib/MGA/Mirrors/DB.pm
@@ -213,7 +213,7 @@ sub check_distributions {
$urls_status{$res->{key}} or next;
my $furi = URI->new(join('/', $url, $res->{relpath}, $res->{relfile}));
my $exists = $self->_check_url($furi);
- if ($updstatus->execute($exists, $res->{key}, $res->{dkey}) == 0) {
+ if ($updstatus->execute($exists ? 1 : 0, $res->{key}, $res->{dkey}) == 0) {
$addstatus->execute($res->{key}, $res->{dkey}, $exists);
}
$upd_lastok->execute($res->{key}, $res->{dkey}) if ($exists);