Skip to content

Commit aee57e8

Browse files
authored
Merge pull request #10649 from haskell/mergify/bp/3.14/pr-10478
Backport #10478: final fixups to sdist check
2 parents 692a80b + eb4dcb7 commit aee57e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-sdist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ jobs:
6262
# (don't look at this too closely)
6363
sdist="$(ls dist-newstyle/sdist/cabal-install-*.tar.gz | sed -n '\,^dist-newstyle/sdist/cabal-install-[0-9.]*\.tar\.gz$,{;p;q;}')"
6464
# extract the cabal-install major version
65-
ver="$(echo "$sdist" | sed -n 's,^dist-newstyle/sdist/cabal-install-\([0-9][0-9]*\.[0-9][0-9]*\)\.[0-9.]*$,\1,p')"
65+
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')"
6666
# dunno if this will ever be extended to freebsd, but grep -q is a gnu-ism
67-
if ghc-pkg --global --simple-output list Cabal | grep "^Cabal-$cbl\\." >/dev/null; then
67+
if ghc-pkg --global --simple-output list Cabal | grep "^Cabal-$ver\\." >/dev/null; then
6868
# sigh, someone broke installing from tarballs
6969
rm -rf cabal*.project Cabal Cabal-syntax cabal-install-solver cabal-install
7070
tar xfz "$sdist"

0 commit comments

Comments
 (0)