aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MGA/Mirrors
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mageia.org>2010-10-03 19:59:41 +0000
committerOlivier Thauvin <nanardon@mageia.org>2010-10-03 19:59:41 +0000
commit89ad70f462dce15a293e0c91d314ee1cbd464076 (patch)
treeeb00abaa2aead6db073685038d1fb1d4c976ed07 /lib/MGA/Mirrors
parent6ddd6c7a35a254b306351103a62054ce67b11056 (diff)
downloadmgamirrors-89ad70f462dce15a293e0c91d314ee1cbd464076.tar
mgamirrors-89ad70f462dce15a293e0c91d314ee1cbd464076.tar.gz
mgamirrors-89ad70f462dce15a293e0c91d314ee1cbd464076.tar.bz2
mgamirrors-89ad70f462dce15a293e0c91d314ee1cbd464076.tar.xz
mgamirrors-89ad70f462dce15a293e0c91d314ee1cbd464076.zip
- fix value in sql command
Diffstat (limited to 'lib/MGA/Mirrors')
-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);