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 | f7850fab0667dc7887caadeedd22451c6e5765a8 (patch) | |
tree | 7d209191eee3c92291ee5add517d7caf59e14134 /mk | |
parent | 6877a3f81ff80a0d8c357d4c145350436c4b6c75 (diff) | |
download | pkgsrc-f7850fab0667dc7887caadeedd22451c6e5765a8.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")
Diffstat (limited to 'mk')
-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} |