From 89ad70f462dce15a293e0c91d314ee1cbd464076 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sun, 3 Oct 2010 19:59:41 +0000 Subject: - fix value in sql command --- lib/MGA/Mirrors/DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1