summaryrefslogtreecommitdiff
blob: 1caad5d150bb13be3719aeb0f5ba046c5e717c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 2834ba64a6eb9ae25ee8eaae4587e6e88755e145 Mon Sep 17 00:00:00 2001
From: Jeremy Olexa <darkside@gentoo.org>
Date: Mon, 17 Oct 2011 20:01:38 +0000
Subject: [PATCH] mirrorprobe: fix str->int issue

http://mirrorbrain.org/issues/issue88
---
 mirrorprobe/mirrorprobe.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mirrorprobe/mirrorprobe.py b/mirrorprobe/mirrorprobe.py
index fd7ac68..7f42bed 100755
--- a/mirrorprobe/mirrorprobe.py
+++ b/mirrorprobe/mirrorprobe.py
@@ -262,7 +262,7 @@ def main():
         #
         # ignore wildcard mirrors, assuming that they can't be checked by normal means (i.e., baseurl itself may
         # not give a 200. Just some files are served maybe...
-        result = conn.Server.select(AND(conn.Server.q.enabled == '1', conn.Server.q.country != '**'))
+        result = conn.Server.select(AND(conn.Server.q.enabled, conn.Server.q.country != '**'))
         for i in result:
             mirrors.append(i)
 
-- 
1.7.3.4