mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
artifacts (all): require prefixing of artifact_version with artifact_prefix_version (which is ${REVISION}--)
This commit is contained in:
committed by
Igor Pečovnik
parent
4a1eec83e7
commit
ff657fcf90
@@ -10,6 +10,7 @@
|
||||
function artifact_uboot_prepare_version() {
|
||||
artifact_version="undetermined" # outer scope
|
||||
artifact_version_reason="undetermined" # outer scope
|
||||
[[ -z "${artifact_prefix_version}" ]] && exit_with_error "artifact_prefix_version is not set"
|
||||
|
||||
# Prepare the version, "sans-repos": just the armbian/build repo contents are available.
|
||||
# It is OK to reach out to the internet for a curl or ls-remote, but not for a git clone/fetch.
|
||||
@@ -53,7 +54,7 @@ function artifact_uboot_prepare_version() {
|
||||
declare bash_hash_short="${bash_hash:0:${short_hash_size}}"
|
||||
|
||||
# outer scope
|
||||
artifact_version="${GIT_INFO_UBOOT[MAKEFILE_VERSION]}-S${short_sha1}-P${uboot_patches_hash_short}-B${bash_hash_short}"
|
||||
artifact_version="${artifact_prefix_version}${GIT_INFO_UBOOT[MAKEFILE_VERSION]}-S${short_sha1}-P${uboot_patches_hash_short}-B${bash_hash_short}"
|
||||
|
||||
declare -a reasons=(
|
||||
"version \"${GIT_INFO_UBOOT[MAKEFILE_FULL_VERSION]}\""
|
||||
|
||||
Reference in New Issue
Block a user