Skip to content
Snippets Groups Projects
Unverified Commit aee57e8c authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Merge pull request #10649 from haskell/mergify/bp/3.14/pr-10478

Backport #10478: final fixups to sdist check
parents 692a80be eb4dcb77
No related branches found
No related tags found
No related merge requests found
...@@ -62,9 +62,9 @@ jobs: ...@@ -62,9 +62,9 @@ jobs:
# (don't look at this too closely) # (don't look at this too closely)
sdist="$(ls dist-newstyle/sdist/cabal-install-*.tar.gz | sed -n '\,^dist-newstyle/sdist/cabal-install-[0-9.]*\.tar\.gz$,{;p;q;}')" sdist="$(ls dist-newstyle/sdist/cabal-install-*.tar.gz | sed -n '\,^dist-newstyle/sdist/cabal-install-[0-9.]*\.tar\.gz$,{;p;q;}')"
# extract the cabal-install major version # extract the cabal-install major version
ver="$(echo "$sdist" | sed -n 's,^dist-newstyle/sdist/cabal-install-\([0-9][0-9]*\.[0-9][0-9]*\)\.[0-9.]*$,\1,p')" ver="$(echo "$sdist" | sed -n 's,^dist-newstyle/sdist/cabal-install-\([0-9][0-9]*\.[0-9][0-9]*\)\.[0-9.]*\.tar\.gz$,\1,p')"
# dunno if this will ever be extended to freebsd, but grep -q is a gnu-ism # dunno if this will ever be extended to freebsd, but grep -q is a gnu-ism
if ghc-pkg --global --simple-output list Cabal | grep "^Cabal-$cbl\\." >/dev/null; then if ghc-pkg --global --simple-output list Cabal | grep "^Cabal-$ver\\." >/dev/null; then
# sigh, someone broke installing from tarballs # sigh, someone broke installing from tarballs
rm -rf cabal*.project Cabal Cabal-syntax cabal-install-solver cabal-install rm -rf cabal*.project Cabal Cabal-syntax cabal-install-solver cabal-install
tar xfz "$sdist" tar xfz "$sdist"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment