Issue #8436 has been updated by Michael Stahnke.

Status changed from Unreviewed to Investigating
Keywords set to openbsd

This seems like more of a bug in pkg_add than in puppet.  Puppet would like to 
utilize sane return codes to know if external commands have succeeded or 
failed.  Do you have ideas for fixing it?

Has pkg_add always returned 0 on failure, or does it have reliable parseable 
output?  
----------------------------------------
Bug #8436: openbsd package provider doesn't recognize failed package 
installation
https://projects.puppetlabs.com/issues/8436

Author: Peter Meier
Status: Investigating
Priority: Normal
Assignee: 
Category: package
Target version: 
Affected Puppet version: 2.7.2rc1
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.

Reply via email to