File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ srpm_build_deps:
4444 - make
4545
4646actions :
47- fix-spec-file : " bash . packit-copr-rpm.sh"
48- pre-sync : " bash . packit-rpm-git-commit.sh"
47+ fix-spec-file : " bash contrib/packit-tmt/ packit-copr-rpm.sh"
48+ pre-sync : " bash contrib/packit-tmt/ packit-rpm-git-commit.sh"
4949
5050jobs :
5151 - job : copr_build
Original file line number Diff line number Diff line change 66
77set -exo pipefail
88
9- . .packit-rpm-git-commit.sh
9+ GIT_TOPDIR=$( git rev-parse --show-toplevel)
10+
11+ . " $GIT_TOPDIR " /contrib/packit-tmt/packit-rpm-git-commit.sh
1012
1113# Get Version from HEAD
1214VERSION=$( grep ' ^const RawVersion' version/rawversion/version.go | cut -d\" -f2)
1315
1416# RPM Version can't take "-"
15- RPM_VERSION=$( echo $VERSION | sed -e ' s/-/~/' )
17+ # shellcheck disable=SC2001
18+ RPM_VERSION=$( echo " $VERSION " | sed -e ' s/-/~/' )
1619
1720# Generate source tarball from HEAD
18- git-archive-all -C $( git rev-parse --show-toplevel ) -- prefix=$PACKAGE -$VERSION / rpm/$PACKAGE -$VERSION .tar.gz
21+ git-archive-all -C " $GIT_TOPDIR " -- prefix=" $PACKAGE -$VERSION /" " $GIT_TOPDIR / rpm/$PACKAGE -$VERSION .tar.gz"
1922
2023# RPM Spec modifications
2124
File renamed without changes.
You can’t perform that action at this time.
0 commit comments