Skip to content

Commit 1870676

Browse files
committed
final fixups to sdist check
validated on 3.12 branch and applied in backport of #10448; this brings the fixes up to `master`
1 parent c4825fb commit 1870676

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
@@ -71,9 +71,9 @@ jobs:
7171
# (don't look at this too closely)
7272
sdist="$(ls dist-newstyle/sdist/cabal-install-*.tar.gz | sed -n '\,^dist-newstyle/sdist/cabal-install-[0-9.]*\.tar\.gz$,{;p;q;}')"
7373
# extract the cabal-install major version
74-
ver="$(echo "$sdist" | sed -n 's,^dist-newstyle/sdist/cabal-install-\([0-9][0-9]*\.[0-9][0-9]*\)\.[0-9.]*$,\1,p')"
74+
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')"
7575
# dunno if this will ever be extended to freebsd, but grep -q is a gnu-ism
76-
if ghc-pkg --global --simple-output list Cabal | grep "^Cabal-$cbl\\." >/dev/null; then
76+
if ghc-pkg --global --simple-output list Cabal | grep "^Cabal-$ver\\." >/dev/null; then
7777
# sigh, someone broke installing from tarballs
7878
rm -rf cabal*.project Cabal Cabal-syntax cabal-install-solver cabal-install
7979
tar xfz "$sdist"

0 commit comments

Comments
 (0)