[v2,1/1] avoid unspecific file names in download cache

Message ID 20251215074219.104455-1-felix.moessbauer@siemens.com
State New
Headers show
Series [v2,1/1] avoid unspecific file names in download cache | expand

Commit Message

Felix Moessbauer Dec. 15, 2025, 7:42 a.m. UTC
With the recent introduction of the SBOM series, we also introduced
artifacts with unspecific names (only v<version>.tar.gz) in the download
cache. As this can easily lead to name collisions, we manually provide
the downloadfilename for the related artifacts.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
Changes since v1:
- use BPN instead of PN to avoid double-download on -native
  (a linter could have caught this, but we don't have one yet)

Felix

 .../recipes-support/python3-beartype/python3-beartype_0.19.0.bb | 2 +-
 .../python3-spdx-tools/python3-spdx-tools_0.8.3.bb              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb b/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
index b8bc2708..92a9ca12 100644
--- a/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
+++ b/meta/recipes-support/python3-beartype/python3-beartype_0.19.0.bb
@@ -18,7 +18,7 @@  DEBIAN_CHANGELOG_TIMESTAMP = "315532800"
 DESCRIPTION = "Unbearably fast near-real-time hybrid runtime-static type-checking in pure Python."
 
 SRC_URI = "\
-    https://github.com/beartype/beartype/archive/refs/tags/v0.19.0.tar.gz \
+    https://github.com/beartype/beartype/archive/refs/tags/v0.19.0.tar.gz;downloadfilename=${BPN}-${PV}.tar.gz  \
     file://rules \
     "
 SRC_URI[sha256sum] = "e7ad00eebf527d60f30e0b391209b561dabd2074b608c50e26c94c2d8250a6cd"
diff --git a/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb b/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
index 30d090a9..6285f332 100644
--- a/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
+++ b/meta/recipes-support/python3-spdx-tools/python3-spdx-tools_0.8.3.bb
@@ -35,7 +35,7 @@  DEB_BUILD_OPTIONS += "nocheck"
 DESCRIPTION = "SPDX parser and tools."
 
 SRC_URI = "\
-    https://github.com/spdx/tools-python/archive/refs/tags/v0.8.3.tar.gz \
+    https://github.com/spdx/tools-python/archive/refs/tags/v0.8.3.tar.gz;downloadfilename=${BPN}-${PV}.tar.gz \
     file://rules \
     "
 SRC_URI[sha256sum] = "17cb0140adbaefb58819c9d5d56060dc6a70c673a854fa9bd882ecfa4e062a7f"