Issue #8436 has been updated by Joe McDonagh.
This is handled in the mtier provider by looking at pkg_add's output rather than its exit code. The bug with the exit code being wrong should be fixed in OBSD 5.0, but mtier works around this. I am attaching the mtier code with a line or two modification I made to properly deal with package flavors... This provider was working pretty well until somewhat recently so let's see if we can get some more thorough testing of it. The file will be attached to 9651. ---------------------------------------- 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.
