Use version from manifest to extract packages

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2023-05-08 15:40:42 +02:00
parent 39b0830a66
commit 1c1ce2c6f7
3 changed files with 72 additions and 21 deletions

View File

@@ -67,13 +67,6 @@ fi
KITMAKER_SCRATCH="${KITMAKER_DIR}/.scratch"
# extract_info extracts the value of the specified variable from the manifest.txt file.
function extract_info() {
local variable=$1
local value=$(cat "${ARTIFACTS_DIR}/manifest.txt" | grep "#${variable}=" | sed -e "s/#${variable}=//" | tr -d '\r')
echo $value
}
IMAGE_EPOCH=$(extract_info "IMAGE_EPOCH")
# Note we use the main branch for the kitmaker archive.
GIT_BRANCH=main
@@ -129,8 +122,6 @@ function create_archive() {
rmdir "${scratch_dir}"
}
function join_by { local IFS="$1"; shift; echo "$*"; }
function optionally_add_property() {
local property=$1
local value=$2