From 3eb6867efa16f891512710eb2bb852483337eb5c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 9 Oct 2019 00:06:11 -0500 Subject: hscript: Implement stub Mount parser --- hscript/script.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hscript/script.cc') diff --git a/hscript/script.cc b/hscript/script.cc index 2bc7831..ddd6cd3 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -143,8 +143,11 @@ struct Script::ScriptPrivate { this->rootpw = std::move(name); return true; } else if(key_name == "mount") { - /*! TODO: implement */ - return false; + std::unique_ptr mount( + dynamic_cast(key_obj) + ); + this->mounts.push_back(std::move(mount)); + return true; } else { return false; } @@ -309,6 +312,9 @@ bool Script::validate() const { /* TODO: Runner.Validate.mount.Block. */ } } + + output_message("validator", "0", "installfile", + std::to_string(failures) + " failure(s).", ""); return (failures == 0); } -- cgit v1.2.3-60-g2f50