euscan: fix a bug and add another exception

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
Corentin Chary 2011-08-22 10:47:21 +02:00
parent c9f9331aaf
commit 7570453bc2

5
euscan
View File

@ -65,7 +65,8 @@ BRUTEFORCE_BLACKLIST_PACKAGES = [
BRUTEFORCE_BLACKLIST_URLS = [ BRUTEFORCE_BLACKLIST_URLS = [
'http://(.*)dockapps.org/download.php/id/(.*)', # infinite loop 'http://(.*)dockapps.org/download.php/id/(.*)', # infinite loop
'http://hydra.nixos.org/build/(.*)' # infinite loop 'http://hydra.nixos.org/build/(.*)', # infinite loop
'http://www.rennings.net/gentoo/distfiles/(.*)' # Doesn't respect 404, infinite loop
] ]
def htop_vercmp(a, b): def htop_vercmp(a, b):
@ -369,7 +370,7 @@ def scan_directory_recursive(cpv, url, steps, vmin, vmax, output):
versions.append((path, version)) versions.append((path, version))
if steps: if steps:
ret = scan_directory_recursive(path, steps, vmin, vmax, output) ret = scan_directory_recursive(cpv, path, steps, vmin, vmax, output)
versions.extend(ret) versions.extend(ret)
return versions return versions