Skip to content

Commit eb4dcb7

Browse files
geekosaurMikolaj
authored andcommitted
final fixups to sdist check
validated on 3.12 branch and applied in backport of haskell#10448; this brings the fixes up to `master` (cherry picked from commit 8e076b6)
1 parent 692a80b commit eb4dcb7

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)