Skip to content

Commit

Permalink
PMM-13487 Fix passing pmm_release to the client script
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Dec 1, 2024
1 parent 6f7f957 commit 6a3f018
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/scripts/build-client-packages
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ build_source_deb(){
rm -f *.dsc *.orig.tar.gz *.debian.tar.gz *.changes

local TARFILE=$(get_tar "tarball")
# TARFILE=$(basename $(find . -name "${PACKAGE_NAME}-*.tar.gz" | sort | tail -n1))
local NAME=$(echo ${TARFILE}| awk -F '-' '{print $1"-"$2}')
local VERSION_TMP=$(echo ${TARFILE}| awk -F '-' '{print $3}')
local VERSION=${VERSION_TMP%.tar.gz}
Expand Down Expand Up @@ -246,8 +245,8 @@ main() {
REPO="https://github.com/Percona-Lab/pmm-submodules.git"

if [ -n "$pmm_release" ]; then
RPM_RELEASE="$RPM_RELEASE.$pmm_release"
DEB_RELEASE="$DEB_RELEASE.$pmm_release"
RPM_RELEASE="$pmm_release"
DEB_RELEASE="$pmm_release"
fi

check_workdir
Expand Down
4 changes: 4 additions & 0 deletions build/scripts/vars
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ fi
pmm_version=$(cat ${root_dir}/VERSION | awk -F'-' '{print $1}')
pmm_release=$(cat ${root_dir}/VERSION | awk -F'-' '{print $2}')

if [ -z "$pmm_release" ]; then
pmm_release=1
fi

echo -e "\n---\n>>> full_pmm_version=${full_pmm_version} pmm_version=${pmm_version} pmm_release=${pmm_release} <<<\n---\n"

platform=${PLATFORM:-linux/amd64}
Expand Down

0 comments on commit 6a3f018

Please sign in to comment.