euscanwww: Upgraded to Celery 3.0 and fixed scan_portage

Fixed TaskSet calls and synchronous stuff. Everything should be
deadlock safe

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino
2012-07-07 18:09:14 +02:00
parent 3be52a710c
commit 03cf3b90a4
4 changed files with 32 additions and 29 deletions

View File

@ -17,6 +17,7 @@ import euscan
from euscan import CONFIG, BLACKLIST_VERSIONS, ROBOTS_TXT_BLACKLIST_DOMAINS
from euscan.version import parse_version
def htop_vercmp(a, b):
def fixver(v):
if v in ['0.11', '0.12', '0.13']:
@ -179,8 +180,8 @@ def simple_vercmp(a, b):
return r
# Fallback
a = pkg_parse_version(a)
b = pkg_parse_version(b)
a = parse_version(a)
b = parse_version(b)
if a < b:
return -1