aboutsummaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorCorentin Chary <corentin.chary@gmail.com>2012-08-07 08:44:26 +0200
committerCorentin Chary <corentin.chary@gmail.com>2012-08-07 08:44:26 +0200
commitaa966bf8377a35dcf257aa5407b002ff1fbb2893 (patch)
tree7169dc1224dfe38b0294bd6f527c0e77dfa08056 /pym
parenteuscan: shuffle mirrors (diff)
downloadeuscan-aa966bf8377a35dcf257aa5407b002ff1fbb2893.tar.gz
euscan-aa966bf8377a35dcf257aa5407b002ff1fbb2893.tar.bz2
euscan-aa966bf8377a35dcf257aa5407b002ff1fbb2893.zip
euscan: small handler fixes
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Diffstat (limited to 'pym')
-rw-r--r--pym/euscan/handlers/generic.py2
-rw-r--r--pym/euscan/handlers/kde.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pym/euscan/handlers/generic.py b/pym/euscan/handlers/generic.py
index 76f598f..c1687c8 100644
--- a/pym/euscan/handlers/generic.py
+++ b/pym/euscan/handlers/generic.py
@@ -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]),
diff --git a/pym/euscan/handlers/kde.py b/pym/euscan/handlers/kde.py
index b789b88..101446e 100644
--- a/pym/euscan/handlers/kde.py
+++ b/pym/euscan/handlers/kde.py
@@ -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/'):