summaryrefslogtreecommitdiff
path: root/EXPRESSIONS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-12-22 11:37:37 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-01-10 14:45:47 +0100
commit5ae5134804b6edaaffec593868f133dd840ef7df (patch)
tree2e5ac34c3e6a5896d04760bab310170503138009 /EXPRESSIONS
parenta382b308b9011606e7d07376808812d51631d558 (diff)
downloadrules-cc-5ae5134804b6edaaffec593868f133dd840ef7df.tar.gz
rules: Add support for pkg-config
Diffstat (limited to 'EXPRESSIONS')
-rw-r--r--EXPRESSIONS16
1 files changed, 16 insertions, 0 deletions
diff --git a/EXPRESSIONS b/EXPRESSIONS
index b974026..55976f4 100644
--- a/EXPRESSIONS
+++ b/EXPRESSIONS
@@ -226,4 +226,20 @@
}
}
}
+, "contains":
+ { "vars": ["list", "item"]
+ , "expression":
+ { "type": "or"
+ , "$1":
+ { "type": "foreach"
+ , "var": "entry"
+ , "range": {"type": "var", "name": "list"}
+ , "body":
+ { "type": "=="
+ , "$1": {"type": "var", "name": "entry"}
+ , "$2": {"type": "var", "name": "item"}
+ }
+ }
+ }
+ }
}