Skip to content

Commit

Permalink
Merge remote-tracking branch 'richtja/pr_release_rpm_check'
Browse files Browse the repository at this point in the history
Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Jun 27, 2024
2 parents afc71b7 + 4faee00 commit 6ee72ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selftests/pre_release/tests/check-copr-rpm-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ VERSION=$(python setup.py --version 2>/dev/null)
COMMIT_DATE=$(git log --pretty='format:%cd' --date='format:%Y%m%d' -n 1 $ORIGIN/master)
SHORT_COMMIT=$(git rev-parse --short=9 $ORIGIN/master)
RPM_RELEASE_NUMBER=$(grep -E '^Release:\s([0-9]+)' python-avocado.spec | sed -E 's/Release:\s([0-9]+).*/\1/')
DISTRO_VERSION=38
DISTRO_VERSION=40

DEFAULT_RPM_NVR="python3-avocado-${VERSION}-${RPM_RELEASE_NUMBER}.${COMMIT_DATE}git${SHORT_COMMIT}.fc${DISTRO_VERSION}"
RPM_NVR="${1:-$DEFAULT_RPM_NVR}"
Expand Down

0 comments on commit 6ee72ff

Please sign in to comment.