Skip to content

Commit 3533d2d

Browse files
committed
Modify plan-checking script to look at all CHaP packages
1 parent 267957b commit 3533d2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/check-cabal-plan.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ with-header()
3232

3333
jq -r '
3434
."install-plan"[]
35-
| select(."pkg-src".repo.uri // "" | match("^https://chap.intersectmbo.org"; "i"))
36-
| "\(."pkg-name")/\(."pkg-version")"
35+
| select(.type == "configured" and .style != "local")
36+
| "\(."pkg-name")/\(."pkg-version")/\(."pkg-src".repo.uri // "")"
3737
' "$PLAN" |
3838
LANG=C sort -t/ -k1,1 -u -o "$PLAN_VERSIONS"
3939

@@ -43,7 +43,7 @@ curl -sSL https://chap.intersectmbo.org/01-index.tar.gz |
4343
LANG=C sort -t/ -k1,1 -k2,2Vr |
4444
LANG=C sort -t/ -k1,1 -u -o "$CHAP_VERSIONS"
4545

46-
LANG=C join -t/ -j1 "$PLAN_VERSIONS" "$CHAP_VERSIONS" |
46+
LANG=C join -t/ -j1 -o 1.1,1.2,2.2,1.5 "$PLAN_VERSIONS" "$CHAP_VERSIONS" |
4747
awk -F/ '$2 != $3 {print}' |
4848
with-header "Package/Plan/CHaP" |
4949
column -t -s/

0 commit comments

Comments
 (0)