diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2010-10-03 19:59:41 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2010-10-03 19:59:41 +0000 |
commit | 89ad70f462dce15a293e0c91d314ee1cbd464076 (patch) | |
tree | eb00abaa2aead6db073685038d1fb1d4c976ed07 /lib/MGA/Mirrors | |
parent | 6ddd6c7a35a254b306351103a62054ce67b11056 (diff) | |
download | mgamirrors-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.pm | 2 |
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); |