summaryrefslogtreecommitdiffstats
path: root/tools/wixl/util.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wixl/util.vala')
-rw-r--r--tools/wixl/util.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/wixl/util.vala b/tools/wixl/util.vala
index 1b201ec..a3033cb 100644
--- a/tools/wixl/util.vala
+++ b/tools/wixl/util.vala
@@ -104,6 +104,10 @@ namespace Wixl {
return prefix + hash[0:32].up ();
}
+ public string yesno (bool yes) {
+ return yes ? "yes" : "no";
+ }
+
public bool parse_yesno (string? str, bool default = false) {
if (str == null)
return default;