Uses/cabal.mk: Fix cabal-extract target when GH_TUPLE is present.

The presence of dist-newstyle directory created by unpacking Haskell
dependencies from GH_TUPLE makes `cabal` run `git pull` instead of `git clone`.
This commit is contained in:
Gleb Popov 2022-07-31 18:56:21 +03:00
parent 7c57fa58d1
commit 949672a6be

View File

@ -180,6 +180,7 @@ cabal-extract: check-cabal
@cd ${WRKSRC} && ${SETENV} HOME=${CABAL_HOME} ${HPACK_CMD}
. endif
. endif
@${RM} -r ${WRKSRC}/dist-newstyle
@${TOUCH} ${EXTRACT_COOKIE} ${CABAL_COOKIE}
# Calls cabal configure on the Haskell package located in ${WRKSRC}