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:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user