diff options
author | tnn <tnn@pkgsrc.org> | 2015-10-19 14:24:26 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-10-19 14:24:26 +0000 |
commit | 835a2a1d21a7216c38639d4f8442128f4f235d02 (patch) | |
tree | 7d209191eee3c92291ee5add517d7caf59e14134 | |
parent | 8d5f70f34123f21616b9a20f6e3987390aacf64d (diff) | |
download | pkgsrc-835a2a1d21a7216c38639d4f8442128f4f235d02.tar.gz |
Don't encode the github tag into the distfile name if we are packaging
a github release and the release version happens to look like a tag.
(a date like 20150714 could be misinterpreted as a git "short SHA")
-rw-r--r-- | mk/fetch/github.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/fetch/github.mk b/mk/fetch/github.mk index 02bac494bc4..d0dbde549f2 100644 --- a/mk/fetch/github.mk +++ b/mk/fetch/github.mk @@ -1,4 +1,4 @@ -# $NetBSD: github.mk,v 1.8 2015/03/12 21:00:01 tnn Exp $ +# $NetBSD: github.mk,v 1.9 2015/10/19 14:24:26 tnn Exp $ # # github.com master site handling # @@ -54,7 +54,7 @@ GITHUB_TYPE= tag . endif . endif -. if defined(GITHUB_TAG) && !empty(GITHUB_TAG:M[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*) +. if !empty(GITHUB_TYPE:Mtag) && !empty(GITHUB_TAG:M[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*) # If the github tag is a git hash (7 or more hex digits), encode it in the # distfile name. _GITHUB_DEFAULT_DISTFILES= ${DISTNAME}-${GITHUB_TAG}${EXTRACT_SUFX} |