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 <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-11-16 07:07:11 +02:00
parent 443b5f62fd
commit 22915bade5
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -25,17 +25,17 @@ def clean_results(results):
def scan_url(pkg, url, options): 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/"): if url.startswith("mirror://kde/unstable/"):
url = generic.replace("mirror://kde/unstable/", "mirror://kde/stable/") url = url.replace("mirror://kde/unstable/", "mirror://kde/stable/")
results += generic.scan(pkg.cpv, url) results += generic.scan_url(pkg, url, options)
if not results: # if nothing was found go brute forcing if not results: # if nothing was found go brute forcing
results = generic.brute_force(pkg.cpv, url) results = generic.brute_force(pkg.cpv, url)
if generic.startswith("mirror://kde/unstable/"): if url.startswith("mirror://kde/unstable/"):
url = generic.replace("mirror://kde/unstable/", "mirror://kde/stable/") url = url.replace("mirror://kde/unstable/", "mirror://kde/stable/")
results += generic.brute_force(pkg.cpv, url) results += generic.brute_force(pkg.cpv, url)
return clean_results(results) return clean_results(results)