Issue #4799 has been updated by James Turnbull.

Status changed from Unreviewed to Ready for Testing
Target version set to 2.6.x


----------------------------------------
Bug #4799: portage provider incorrectly fails when eix finds no packages
http://projects.puppetlabs.com/issues/4799

Author: Lance Albertson
Status: Ready for Testing
Priority: Normal
Assignee: 
Category: Gentoo
Target version: 2.6.x
Affected version: 0.25.5
Keywords: 
Branch: 


If the portage provider tries to search of a package that does not exist, 
errors out and fails with the following error:


    err: //rrdtool::python/Package[rrdtool-python]: Failed to retrieve current 
state of resource: Execution of '/usr/bin/eix --nocolor --pure-packages 
--stable --format <category> <name> [<installedversions:LASTVERSION>] 
[<bestversion:LASTVERSION>] <homepage> <description>
    --exact --name rrdtool-python' returned 1: 

Eix will return 1 if it finds no packages by default. You can change the value 
eix returns by editing /etc/eixrc and add:

    NOFOUND_STATUS=0

When you do that and try running it again, you get a more useful error message:

    err: //rrdtool::python/Package[rrdtool-python]: Failed to retrieve current 
state of resource: No package found with the specified name [<unspecified 
category>/rrdtool-python]

However, this brings in a whole new problem related to issue #3000. The real 
fix should deal with exit status in a saner manner possibly similar to how the 
dpkg provider works.



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