Correzione di un paio di errori di sintassi sui percorsi multipli.

This commit is contained in:
Emiliano Vavassori 2023-01-07 22:17:18 +01:00
parent 78a43350ed
commit 0bea7a81bc
1 changed files with 5 additions and 5 deletions

View File

@ -154,10 +154,10 @@ class Build(loaih.RemoteBuild):
elif len(self.relative_path) == 1:
path_arr = [ self.storage_path, self.relative_path[0], '' ]
else:
path_arr = self.relative_path.insert(0, self.storage_path)
path_arr = self.relative_path
path_arr.insert(0, self.storage_path)
path = str.join('/', path_arr)
print(f"DEBUG - Name: {name}, URL: {path}")
matching = []
try:
with urllib.request.urlopen(path) as url:
@ -410,7 +410,6 @@ class Build(loaih.RemoteBuild):
itempath = os.path.join(self.appnamedir, item)
if os.path.exists(itempath):
# For any built arch, find out if a file exist.
print(f"DEBUG: checkumming {item}.")
self.__create_checksum__(item)
@ -423,7 +422,6 @@ class Build(loaih.RemoteBuild):
if checksum.stdout:
with open(f"{file}.md5", 'w', encoding='utf-8') as checkfile:
print(f"DEBUG: writing checksum for {file}.")
checkfile.write(checksum.stdout)
@ -446,7 +444,9 @@ class Build(loaih.RemoteBuild):
elif len(self.relative_path) == 1:
remotepath = str.join('/', [ self.remote_path, self.relative_path[0], '' ])
else:
remotepath = str.join('/', self.relative_path.insert(0, self.remote_path))
path_arr = self.relative_path
path_arr.insert(0, self.remote_path)
remotepath = str.join('/', path_arr)
try:
subprocess.run(
r"rsync -rlIvz --munge-links *.AppImage* " +