summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CC/EXPRESSIONS11
1 files changed, 8 insertions, 3 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS
index c1c11f3..cfbce42 100644
--- a/CC/EXPRESSIONS
+++ b/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
}
]
]