summaryrefslogtreecommitdiff
path: root/rules/CC/EXPRESSIONS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-01-20 16:19:28 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-01-20 16:19:28 +0100
commit5cf2ed4a1953564b2358af57345d4fecfcdf6673 (patch)
treef8b3d9f89bfd5b5605ab88b65149af265138679f /rules/CC/EXPRESSIONS
parentbcf8e21cebd716917bfd67e86e9ba77c51cca969 (diff)
parent741a00134ff1de2ec59c98997aa3b1045c99e3a6 (diff)
downloadrules-cc-5cf2ed4a1953564b2358af57345d4fecfcdf6673.tar.gz
Merge commit '741a00134ff1de2ec59c98997aa3b1045c99e3a6' into rules-cc
Diffstat (limited to 'rules/CC/EXPRESSIONS')
-rw-r--r--rules/CC/EXPRESSIONS11
1 files changed, 8 insertions, 3 deletions
diff --git a/rules/CC/EXPRESSIONS b/rules/CC/EXPRESSIONS
index c1c11f3..cfbce42 100644
--- a/rules/CC/EXPRESSIONS
+++ b/rules/CC/EXPRESSIONS
@@ -1145,9 +1145,14 @@
, "bindings":
[ ["name", {"type": "var", "name": "pkg-name"}]
, [ "version"
- , { "type": "join"
- , "separator": "."
- , "$1": {"type": "var", "name": "soversion"}
+ , { "type": "if"
+ , "cond": {"type": "var", "name": "soversion"}
+ , "then":
+ { "type": "join"
+ , "separator": "."
+ , "$1": {"type": "var", "name": "soversion"}
+ }
+ , "else": null
}
]
]