Issue #8436 has been updated by Peter Meier.
Michael: I wrote the author that rewrote pkg_add for OpenBSD 4.7 and asked for such a feature. BUT this behavior is here since 4.7 (OpenBSD is currently at 4.9 - soon at 5.0). Hence, I think we need to anyway address this issue without having proper exit codes, so we can get back to a working openbsd package provider. For me the only solution seems to be to parse the output for "Can't find $package_name" or does anybody else see a better solution? ---------------------------------------- Bug #8436: openbsd package provider doesn't recognize failed package installation https://projects.puppetlabs.com/issues/8436 Author: Peter Meier Status: Needs More Information Priority: Normal Assignee: Category: package Target version: Affected Puppet version: 2.6.3 Keywords: openbsd Branch: While investigating #8435 I discovered that pkg_add does not exit with an exitcode > 0 if the package can't be found: <pre> # /usr/sbin/pkg_add p5-libwww Can't find p5-libwww # echo $? 0 </pre> Hence puppet does not recognize that a package can't be installed and will report the installation as successful. This -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
