Skip to content

Commit

Permalink
Mk/Uses: Drop the "/package/" part of URI when calling cabal2tuple.
Browse files Browse the repository at this point in the history
Some repositories unlike Hackage append "/package/" when accessing a package.
This confuses cabal2tuple, so chop it.
  • Loading branch information
arrowd committed Mar 9, 2023
1 parent 0907973 commit 4caa2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mk/Uses/cabal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ EXTRACT_ONLY+= ${_CABAL_EXTRACT_ONLY}

. if defined(CABAL_REPOSITORIES) && !empty(CABAL_REPOSITORIES)
. for r in ${CABAL_REPOSITORIES}
CABAL2TUPLE_ARGS+= --group=${r} --master-site=${MASTER_SITES:M*\:${r}:[1]:S/:${r}//}
CABAL2TUPLE_ARGS+= --group=${r} --master-site=${MASTER_SITES:M*\:${r}:[1]:S/:${r}//:S|/package/||}
. endfor
. endif

Expand Down

0 comments on commit 4caa2e2

Please sign in to comment.