Gestito errore di verifica delle build con cartella quando non trovate.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
64effab3d7
commit
db01651251
@ -159,14 +159,19 @@ class Build(loaih.RemoteBuild):
|
|||||||
path = str.join('/', path_arr)
|
path = str.join('/', path_arr)
|
||||||
print(f"DEBUG - Name: {name}, URL: {path}")
|
print(f"DEBUG - Name: {name}, URL: {path}")
|
||||||
matching = []
|
matching = []
|
||||||
with urllib.request.urlopen(path) as url:
|
try:
|
||||||
matching = etree.HTML(url.read()).xpath(
|
with urllib.request.urlopen(path) as url:
|
||||||
f"//a[contains(@href, '{name}')]/@href"
|
matching = etree.HTML(url.read()).xpath(
|
||||||
)
|
f"//a[contains(@href, '{name}')]/@href"
|
||||||
|
)
|
||||||
|
|
||||||
if len(matching) > 0:
|
if len(matching) > 0:
|
||||||
# Already built.
|
# Already built.
|
||||||
self.built[arch] = True
|
self.built[arch] = True
|
||||||
|
|
||||||
|
except urllib.error.HTTPError:
|
||||||
|
# The URL specified do not exist. So it is to build.
|
||||||
|
pass
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Repo is local
|
# Repo is local
|
||||||
|
Reference in New Issue
Block a user