From f303311d01cea57b193ee54ebf9d837ca0128023 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Mon, 10 Sep 2018 10:58:03 -0500 Subject: [PATCH] obs: image: fix tarball name. We find for the tarball name with the package name. If this is a `-rc` tha package versoin will have `~rc`, lets replace `~` for `-` before get the tarball name. Signed-off-by: Jose Carlos Venegas Munoz --- obs-packaging/kata-containers-image/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs-packaging/kata-containers-image/update.sh b/obs-packaging/kata-containers-image/update.sh index 360dba512d..839447e987 100755 --- a/obs-packaging/kata-containers-image/update.sh +++ b/obs-packaging/kata-containers-image/update.sh @@ -48,7 +48,7 @@ replace_list=( verify rm -rf kata-containers.tar.gz -image_tarball=$(find . -name 'kata-containers-'"${VERSION}"'-'"${kata_agent_hash:0:11}"'-*.tar.gz') +image_tarball=$(find . -name 'kata-containers-'"${VERSION/\~/-}"'-'"${kata_agent_hash:0:11}"'-*.tar.gz') [ -f "${image_tarball}" ] || die "image not found" cp "${image_tarball}" kata-containers.tar.gz