euscan: small handler fixes

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
Corentin Chary 2012-08-07 08:44:26 +02:00
parent d5bf980779
commit aa966bf837
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ def scan_html(data, url, pattern):
if href.startswith(url):
href = href.replace(url, "", 1)
match = re.match(pattern, href, re.I)
match = re.search(pattern, href, re.I)
if match:
results.append(
(".".join([x for x in match.groups() if x is not None]),

View File

@ -19,7 +19,7 @@ def clean_results(results):
return ret
def scan_url(pkg, url):
def scan_url(pkg, url, options):
results = generic.scan(pkg.cpv, url)
if generic.startswith('mirror://kde/unstable/'):