diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-14 13:08:16 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-14 13:08:16 -0500 |
commit | f93285df551fc1c97eb969b37308d673408d86e3 (patch) | |
tree | 628d088cd991d8ba8c69038147ddcca8f92c3930 /hscript/meta.cc | |
parent | d90ac4c662c4c86f35d3f302e44831845917e028 (diff) | |
download | horizon-f93285df551fc1c97eb969b37308d673408d86e3.tar.gz horizon-f93285df551fc1c97eb969b37308d673408d86e3.tar.bz2 horizon-f93285df551fc1c97eb969b37308d673408d86e3.tar.xz horizon-f93285df551fc1c97eb969b37308d673408d86e3.zip |
hscript: Move PkgInstall virt methods to .cc to avoid vtable emission
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r-- | hscript/meta.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc index e1f7b2f..3b18865 100644 --- a/hscript/meta.cc +++ b/hscript/meta.cc @@ -164,6 +164,19 @@ Key *PkgInstall::parseFromData(const std::string &data, int lineno, int *errors, return new PkgInstall(lineno, all_pkgs); } + +bool PkgInstall::validate(ScriptOptions) const { + /* Any validation errors would have occurred above. */ + return true; /* LCOV_EXCL_LINE */ +} + + +bool PkgInstall::execute(ScriptOptions) const { + /* Package installation is handled in Script::execute. */ + return true; /* LCOV_EXCL_LINE */ +} + + Key *Repository::parseFromData(const std::string &data, int lineno, int *errors, int *) { if(data.empty() || (data[0] != '/' && data.compare(0, 4, "http"))) { |