[chef] Re: RFC: CHEF-425 Gentoo package names


Chronological Thread 
  • From: Adam Jacob < >
  • To:
  • Subject: [chef] Re: RFC: CHEF-425 Gentoo package names
  • Date: Thu, 4 Feb 2010 12:46:23 -0800

This looks reasonable to me, at least from a high level.  DWIM-ery
means that if there is only one category, it should work it out, and
if there is more than one we should carp.

Adam

On Thu, Feb 4, 2010 at 2:30 AM, Kenneth Kalmer 
< >
 wrote:
> Hi everyone
> Ticket: http://tickets.opscode.com/browse/CHEF-425
> Commits: http://github.com/kennethkalmer/chef/commit/8df3958 &;
> http://github.com/kennethkalmer/chef/commit/3abe57
> The issue is when providing package names to the Gentoo package provider
> without including a category name, which causes it to re-emerge installed
> packages over and over again. After applying some thought to it (and
> reviewing the code) it became obvious that one needs to provide a proper
> 'atom' to the package resource.
> The first commit simply logs a warning for the chef user, alerting them that
> the atom isn't correct.
> The second commit applies some voodoo to infer the possible category name
> for portage. If multiple categories are inferred, no assumptions are made,
> keeping ambiguous package names and letting emerge fail. However, if only a
> single category is found then the package name is updated to have this
> category name.
> Please have a look and let me know what you think. I can understand the
> inferring code can be too much, hence two separate commits. At the very
> least the logging patch should be accepted.
> Can I start a new page on the wiki detailing 'gotchas' for Gentoo? I'd like
> to ensure Gentoo users can enjoy chef without bumping their heads on small
> things like this.
> Best
> --
> Kenneth Kalmer
> 
> http://opensourcery.co.za
> @kennethkalmer
>



-- 
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: 




Archive powered by MHonArc 2.6.16.

§