Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2021 10:14:13 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1d2372ec7f97 - main - Uses/cabal.mk: Omit "_0" part of the package version in make-use-cabal-revs
Message-ID:  <202106121014.15CAED9K018917@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1d2372ec7f975ad32da34c3bd4031046741ee32c

commit 1d2372ec7f975ad32da34c3bd4031046741ee32c
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2021-06-12 09:58:57 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2021-06-12 10:14:09 +0000

    Uses/cabal.mk: Omit "_0" part of the package version in make-use-cabal-revs
---
 Mk/Uses/cabal.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/Uses/cabal.mk b/Mk/Uses/cabal.mk
index a0ccf3226d0a..ce7cba801d69 100644
--- a/Mk/Uses/cabal.mk
+++ b/Mk/Uses/cabal.mk
@@ -179,7 +179,7 @@ make-use-cabal:
 # Re-generates USE_CABAL items to have revision numbers.
 make-use-cabal-revs:
 .  for package in ${_use_cabal}
-	@(${SETENV} HTTP_ACCEPT="application/json" fetch -q -o - http://hackage.haskell.org/package/${package:C/_[0-9]+//}/revisions/ | python3 -c "import sys, json; print('${package:C/_[0-9]+//}_' + str(json.load(sys.stdin)[-1]['number']), end='')")
+	@(${SETENV} HTTP_ACCEPT="application/json" fetch -q -o - http://hackage.haskell.org/package/${package:C/_[0-9]+//}/revisions/ | python3 -c "import sys, json; print(('${package:C/_[0-9]+//}_' + str(json.load(sys.stdin)[-1]['number'])).replace('_0',''), end='')")
 	@echo ' \'
 .  endfor
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106121014.15CAED9K018917>