Cambiamenti per esecuzione corretta verifica online.
This commit is contained in:
parent
9cf3119489
commit
ae9668554a
|
@ -119,9 +119,13 @@ class Build(loaih.RemoteBuild):
|
||||||
# Remote storage. I have to query a remote site to know if it
|
# Remote storage. I have to query a remote site to know if it
|
||||||
# was already built.
|
# was already built.
|
||||||
name = self.appimagefilename[arch]
|
name = self.appimagefilename[arch]
|
||||||
matching = etree.HTML(urllib.request.urlopen(str.join('/',
|
if len(self.relative_path) > 0:
|
||||||
self.relative_path.insert(0, self.storage_path)
|
path_arr = self.relative_path.insert(0, self.storage_path)
|
||||||
)).read()).xpath(
|
else:
|
||||||
|
path_arr = [ self.storage_path, '' ]
|
||||||
|
matching = etree.HTML(urllib.request.urlopen(
|
||||||
|
str.join('/', path_arr)
|
||||||
|
).read()).xpath(
|
||||||
f"//a[contains(@href, '{name}')/@href"
|
f"//a[contains(@href, '{name}')/@href"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue