From 22915bade5525524663239f88b4dda49198e766c Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Thu, 16 Nov 2023 07:07:11 +0200 Subject: [PATCH] Fix kde handler * It appears it was broken in the midst of 8d912379, no apparent rationale for it being changed there. Signed-off-by: Alfred Wingate --- src/euscan/handlers/kde.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/euscan/handlers/kde.py b/src/euscan/handlers/kde.py index a337fdb..1830fe5 100644 --- a/src/euscan/handlers/kde.py +++ b/src/euscan/handlers/kde.py @@ -25,17 +25,17 @@ def clean_results(results): def scan_url(pkg, url, options): - results = generic.scan(pkg.cpv, url) + results = generic.scan_url(pkg, url, options) - if generic.startswith("mirror://kde/unstable/"): - url = generic.replace("mirror://kde/unstable/", "mirror://kde/stable/") - results += generic.scan(pkg.cpv, url) + if url.startswith("mirror://kde/unstable/"): + url = url.replace("mirror://kde/unstable/", "mirror://kde/stable/") + results += generic.scan_url(pkg, url, options) if not results: # if nothing was found go brute forcing results = generic.brute_force(pkg.cpv, url) - if generic.startswith("mirror://kde/unstable/"): - url = generic.replace("mirror://kde/unstable/", "mirror://kde/stable/") + if url.startswith("mirror://kde/unstable/"): + url = url.replace("mirror://kde/unstable/", "mirror://kde/stable/") results += generic.brute_force(pkg.cpv, url) return clean_results(results)