Skip to content

Commit

Permalink
selftests/pre_release/tests/check-copr-rpm-version.sh: fix distro ver…
Browse files Browse the repository at this point in the history
…sion

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Jun 9, 2023
1 parent b3709e1 commit 348d9d2
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=36
DISTRO_VERSION=38

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 348d9d2

Please sign in to comment.