summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-21 17:14:35 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-21 17:14:35 +0200
commitf1f28a764e24a519aaa1d4c01097acee93b4eb1b (patch)
treea67d678acb2189fc84176df6de67e5f6c1929cb5
parentf8edf81e172a4dd459d2cb687d00424ed888a341 (diff)
downloadrules-cc-f1f28a764e24a519aaa1d4c01097acee93b4eb1b.tar.gz
shell defaults: properly deduplicate "bin dirs" to the left
-rw-r--r--shell/RULES22
1 files changed, 16 insertions, 6 deletions
diff --git a/shell/RULES b/shell/RULES
index 2ce078e..5ac07e6 100644
--- a/shell/RULES
+++ b/shell/RULES
@@ -137,14 +137,24 @@
}
]
, [ "bin dirs"
- , { "type": "++"
+ , { "type": "reverse"
, "$1":
- [ {"type": "FIELD", "name": "bin dirs"}
- , { "type": "let*"
- , "bindings": [["provider", "bin dirs"]]
- , "body": {"type": "CALL_EXPRESSION", "name": "base-provides-++"}
+ { "type": "nub_right"
+ , "$1":
+ { "type": "reverse"
+ , "$1":
+ { "type": "++"
+ , "$1":
+ [ {"type": "FIELD", "name": "bin dirs"}
+ , { "type": "let*"
+ , "bindings": [["provider", "bin dirs"]]
+ , "body":
+ {"type": "CALL_EXPRESSION", "name": "base-provides-++"}
+ }
+ ]
+ }
}
- ]
+ }
}
]
]