OpenBSD pkg utils does not return properly, so we have to verify success by looking at the list of installed packages after the present/absent actions
.
escaped some variables in the gencode-remote output
handle existing symlink but wrong source

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
either to it all, or fail; echo and cat suck, printf ftw!

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
ignore trailing slashes for comparison of source

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
Merge branch 'enhancement-package-pkg-openbsd' of https://github.com/ghettosh/cdist
Merge branch 'issue/321' of https://github.com/asteven/cdist
++changes

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>