Correzione di un paio di errori di sintassi sui percorsi multipli.
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
78a43350ed
commit
0bea7a81bc
@ -154,10 +154,10 @@ class Build(loaih.RemoteBuild):
|
|||||||
elif len(self.relative_path) == 1:
|
elif len(self.relative_path) == 1:
|
||||||
path_arr = [ self.storage_path, self.relative_path[0], '' ]
|
path_arr = [ self.storage_path, self.relative_path[0], '' ]
|
||||||
else:
|
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)
|
path = str.join('/', path_arr)
|
||||||
print(f"DEBUG - Name: {name}, URL: {path}")
|
|
||||||
matching = []
|
matching = []
|
||||||
try:
|
try:
|
||||||
with urllib.request.urlopen(path) as url:
|
with urllib.request.urlopen(path) as url:
|
||||||
@ -410,7 +410,6 @@ class Build(loaih.RemoteBuild):
|
|||||||
itempath = os.path.join(self.appnamedir, item)
|
itempath = os.path.join(self.appnamedir, item)
|
||||||
if os.path.exists(itempath):
|
if os.path.exists(itempath):
|
||||||
# For any built arch, find out if a file exist.
|
# For any built arch, find out if a file exist.
|
||||||
print(f"DEBUG: checkumming {item}.")
|
|
||||||
self.__create_checksum__(item)
|
self.__create_checksum__(item)
|
||||||
|
|
||||||
|
|
||||||
@ -423,7 +422,6 @@ class Build(loaih.RemoteBuild):
|
|||||||
|
|
||||||
if checksum.stdout:
|
if checksum.stdout:
|
||||||
with open(f"{file}.md5", 'w', encoding='utf-8') as checkfile:
|
with open(f"{file}.md5", 'w', encoding='utf-8') as checkfile:
|
||||||
print(f"DEBUG: writing checksum for {file}.")
|
|
||||||
checkfile.write(checksum.stdout)
|
checkfile.write(checksum.stdout)
|
||||||
|
|
||||||
|
|
||||||
@ -446,7 +444,9 @@ class Build(loaih.RemoteBuild):
|
|||||||
elif len(self.relative_path) == 1:
|
elif len(self.relative_path) == 1:
|
||||||
remotepath = str.join('/', [ self.remote_path, self.relative_path[0], '' ])
|
remotepath = str.join('/', [ self.remote_path, self.relative_path[0], '' ])
|
||||||
else:
|
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:
|
try:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
r"rsync -rlIvz --munge-links *.AppImage* " +
|
r"rsync -rlIvz --munge-links *.AppImage* " +
|
||||||
|
Reference in New Issue
Block a user