euscan: small handler fixes
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
parent
d5bf980779
commit
aa966bf837
@ -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]),
|
||||
|
@ -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/'):
|
||||
|
Loading…
Reference in New Issue
Block a user