From f578a4c13851dcc32e3558d5a2b0c8d06f8024f8 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Thu, 2 Jun 2016 07:29:01 +0000 Subject: [PATCH] Github silently replaces + with - in the tag when creating a tarball. Reported by: antoine Sponsored by: Absolight --- Mk/bsd.sites.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk index 443f1434eba5..c994f1c4b737 100644 --- a/Mk/bsd.sites.mk +++ b/Mk/bsd.sites.mk @@ -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