From acb7fe6660d34f0405e85b2715bb277c66ae1125 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 14 Feb 2024 22:07:18 +0100 Subject: [PATCH] fix(sw360): Do not use a path as the temp dir infix The optional infix should be a string without path separators, so simply omit it for simplicity. Signed-off-by: Sebastian Schuberth --- .../src/main/kotlin/UploadResultToSw360Command.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands/upload-result-to-sw360/src/main/kotlin/UploadResultToSw360Command.kt b/plugins/commands/upload-result-to-sw360/src/main/kotlin/UploadResultToSw360Command.kt index 1aff94020d40b..d5265b3a47e65 100644 --- a/plugins/commands/upload-result-to-sw360/src/main/kotlin/UploadResultToSw360Command.kt +++ b/plugins/commands/upload-result-to-sw360/src/main/kotlin/UploadResultToSw360Command.kt @@ -94,7 +94,7 @@ class UploadResultToSw360Command : OrtCommand( .orElseGet { createSw360Release(pkg, sw360ReleaseClient) } if (attachSources) { - val tempDirectory = createOrtTempDir(pkg.id.toPath()) + val tempDirectory = createOrtTempDir() try { // First, download the sources of the package into a source directory, whose parent directory // is temporary.