mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Fix calling subprocesses
We shouldn't unpack the list. The first argument is allowed to be a list. If we unpack it, it'll override other arguments to the call function that would be the wrong type then (buffer size). Contributes to issue CURA-9409.
This commit is contained in:
parent
254edfd3ec
commit
f3fd2d6f80
1 changed files with 3 additions and 3 deletions
|
@ -47,13 +47,13 @@ def copy_metadata_files():
|
|||
def generate_appimage():
|
||||
appimage_path = os.path.join(dist_path, appimage_filename)
|
||||
command = ["appimagetool", "--appimage-extract-and-run", f"{dist_path}/", appimage_path]
|
||||
result = subprocess.call(*command)
|
||||
result = subprocess.call(command)
|
||||
if result != 0:
|
||||
raise RuntimeError(f"The AppImageTool command returned non-zero: {result}")
|
||||
|
||||
def sign_appimage():
|
||||
appimage_path = os.path.join(dist_path, appimage_filename)
|
||||
command = ["gpg", "--yes", "--armor", "--detach-sig", {appimage_path}]
|
||||
result = subprocess.call(*command)
|
||||
command = ["gpg", "--yes", "--armor", "--detach-sig", appimage_path]
|
||||
result = subprocess.call(command)
|
||||
if result != 0:
|
||||
raise RuntimeError(f"The GPG command returned non-zero: {result}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue