Skip to content

Commit

Permalink
PMM-13487 Do not sed the release attr in Server RPMs
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Dec 1, 2024
1 parent 21910eb commit 95fe536
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 0 additions & 3 deletions build/packages/rpm/server/SOURCES/.gitignore

This file was deleted.

4 changes: 3 additions & 1 deletion build/scripts/build-client-packages
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# NOTE: this script must be executed in a container environment.

set -o errexit
set -o xtrace
if [ "$DEBUG_MODE" -eq 1 ]; then
set -o xtrace
fi

usage () {
cat <<EOF
Expand Down
5 changes: 0 additions & 5 deletions build/scripts/build-server-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ prepare_spec() {
fi
sed -i -e "s/%define full_pmm_version.*/%define full_pmm_version ${full_pmm_version}/" ${spec_file}

if [ -n "$pmm_release" ]; then
sed -i -e "s/\(%define release.*\)/\1.$pmm_release/" ${spec_file}
grep -r 'define release' ${spec_file}
fi

if [ "${spec_name}" != "victoriametrics" ]; then
# Substitute the https source by pointing to the repo on the filesystem
sed -i -e "s;\(Source0:[[:space:]]*\)http.*;\1${tar_archive};" ${spec_file}
Expand Down

0 comments on commit 95fe536

Please sign in to comment.