Skip to content

Commit 5d2d6bb

Browse files
committed
Translate hyphens to underscores.
This only matters when testing with pre-releases. We expect our `PKGBUILD` to translate back[^1] when fetching sources. [^1]: https://wiki.archlinux.org/title/PKGBUILD#pkgver
1 parent d4bf7f8 commit 5d2d6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/aur-publish/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cd "$PKGNAME"
3333
echo "::endgroup::"
3434

3535
echo "::group::Update PKGBUILD and .SRCINFO"
36-
sed -i 's/^pkgver=.*$/pkgver='"$PKGVER/" PKGBUILD
36+
sed -i 's/^pkgver=.*$/pkgver='"${PKGVER//-/_}/" PKGBUILD
3737
sed -i 's/^pkgrel=.*$/pkgrel=1/' PKGBUILD
3838
updpkgsums
3939
makepkg --printsrcinfo >.SRCINFO

0 commit comments

Comments
 (0)