Issue #12052 has been reported by Thomas Nygreen.

----------------------------------------
Bug #12052: No error message printed if package installation fails due to 
broken dependencies
https://projects.puppetlabs.com/issues/12052

Author: Thomas Nygreen
Status: Unreviewed
Priority: Normal
Assignee: 
Category: package
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


When using a package statement to install a package, and that package has 
broken dependencies, puppet continues without printing an error message. I 
found out that `aptitude -y install package-name` returns a 0 exit status code 
even if the package name does not exist, or the package has broken 
dependencies. Puppet already reads the output from aptitude to check for the 
first case, but misses the case with broken dependencies. 

Instead of searching for /Couldn't find any package/ in the output from 
aptitude, the install routine should check if the package was actually 
installed, using something like
dpkg-query -W -f='${Status}' package-name



-- 
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