1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

Github silently replaces + with - in the tag when creating a tarball.

Reported by:	antoine
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2016-06-02 07:29:01 +00:00
parent 058d6de4eb
commit f578a4c138
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=416269

View File

@ -611,8 +611,8 @@ GH_TAGNAME:= ${GH_TAGNAME_DEFAULT}
. if defined(GH_TAGNAME)
GH_TAGNAME_SANITIZED= ${GH_TAGNAME:S,/,-,}
# Github silently converts tags starting with v to not have v in the filename
# and extraction directory.
GH_TAGNAME_EXTRACT= ${GH_TAGNAME_SANITIZED:C/^[vV]([0-9])/\1/}
# and extraction directory. It also replaces + with -.
GH_TAGNAME_EXTRACT= ${GH_TAGNAME_SANITIZED:C/^[vV]([0-9])/\1/:S/+/-/g}
. endif
. if defined(_GITHUB_MUST_SET_DISTNAME)
# GH_TAGNAME defaults to DISTVERSIONFULL; Avoid adding DISTVERSIONFULL in twice