Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix uploading of the nightly packages

Dmitry Kazakov45de71f2c701
diff --git a/build-tools/ci-scripts/upload-nightly-packages.py b/build-tools/ci-scripts/upload-nightly-packages.py
index 8003180b82..f897c2a09e 100644
--- a/build-tools/ci-scripts/upload-nightly-packages.py
+++ b/build-tools/ci-scripts/upload-nightly-packages.py
@@ -60,15 +60,15 @@ for pattern in patterns:
print( "## Found a package file: {}".format(package))
shutil.move(package, packagesFolder)
-commandToRun = ' '.join([sys.executable,
- os.path.join('ci-notary-service', 'publishbuild.py'),
- '--config', os.environ['KRITACI_PUBLISH_BUILD_CONFIG'],
- '--platform', arguments.platform,
- packagesFolder])
+commandToRun = [sys.executable,
+ os.path.join('ci-notary-service', 'publishbuild.py'),
+ '--config', os.environ['KRITACI_PUBLISH_BUILD_CONFIG'],
+ '--platform', arguments.platform,
+ packagesFolder]
try:
- print( "## RUNNING: " + commandToRun )
+ print( "## RUNNING: " + ' '.join(commandToRun) )
subprocess.check_call(commandToRun)
-except Exception:
- print("## Failed to upload packages")
+except Exception as e:
+ print(f"## Failed to upload packages: {e}")
sys.exit(1)