Issue #3655 has been updated by Doug Warner.

Thanks, I definitely missed that part when I was looking at the code (I was 
trying to figure out what 'version_format' was doing ;).

That also makes the full "--installed" command work as described (both tried on 
eix 0.19.2).

Unfortunately puppet still thinks that files that are installed aren't, but 
this seems to be only happening with my own overlay now (although it was 
previously happening for all packages).

Here's some debug:
<pre>
debug: Puppet::Type::Package::ProviderPortage: Executing '/usr/bin/eix 
--nocolor --pure-packages --stable --format <category> <name> 
[<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] <homepage> 
<description>
 --exact --category-name bitleap-server/bitleaplibs'
err: //bitleapportage::bitleaplibs/Package[bitleaplibs]: Failed to retrieve 
current state of resource: No package found with the specified name 
[bitleap-server/bitleaplibs]
notice: //bitleapportage::php_modules/Package[php-modules]: Dependency 
package[bitleaplibs] has 1 failures
warning: //bitleapportage::php_modules/Package[php-modules]: Skipping because 
of failed dependencies
</pre>

Here's the command and output when I run this from the cli:
<pre>
$ LASTVERSION="{last}<version>{}" /usr/bin/eix --nocolor --pure-packages 
--stable --format '<category> <name> [<installedversions:LASTVERSION>] 
[<bestversion:LASTVERSION>] <homepage> <description>
> ' --exact --category-name bitleap-server/bitleaplibs
bitleap-server bitleaplibs [20071020-r7588] [20071020-r7588]  BitLeap C 
Libraries
</pre>

For some background, I'm trying to upgrade my 0.24.8 puppetmaster to 0.25.4 and 
get things running on that host before I point all my 0.24.8 boxes to it and 
work on upgrading them.
----------------------------------------
Bug #3655: Puppet doesn't find installed packages with portage provider
http://projects.puppetlabs.com/issues/3655

Author: Doug Warner
Status: Accepted
Priority: Normal
Assigned to: Benedikt Böhm
Category: Gentoo
Target version: 0.25.5
Affected version: 0.25.4
Keywords: eix
portage
gentoo
Branch: 


I'm trying to upgrade my gentoo boxes to 0.25.4 but am running into a problem 
with the portage package provider is not finding installed packages.  It looks 
like the "<installedversions:LASTVERSION>" format for eix is not finding the 
correct value.  I've tried using eix versions 0.17.0, 0.19.2, and 0.20.3.

Example output:
<pre># /usr/bin/eix --nocolor --pure-packages --stable --format '<category> 
<name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] <homepage> 
<description>
' --exact --category-name sys-devel/gcc-config
sys-devel gcc-config [] [] http://www.gentoo.org/ Utility to change the gcc 
compiler being used
</pre>

In this example it looks like the brackets should be filled in with the values 
which are captured by eix, shown here:
<pre># eix gcc-config
[I] sys-devel/gcc-config
     Available versions:  1.3.16 1.4.0-r4 1.4.1 **1.5
     Installed versions:  1.4.1(19:38:02 06/05/09)
     Homepage:            http://www.gentoo.org/
     Description:         Utility to change the gcc compiler being used
</pre>    



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