Bug 464472 - [PATCH] Puppet doesn't deal with RPM provides correctly
Summary: [PATCH] Puppet doesn't deal with RPM provides correctly
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: puppet
Version: el5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Lutterkort
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: ActualBug
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-29 10:43 UTC by Lubomir Rintel
Modified: 2013-04-30 23:40 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-11-26 07:31:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Add support for RPM provides (2.17 KB, text/plain)
2008-09-29 10:43 UTC, Lubomir Rintel
no flags Details

Description Lubomir Rintel 2008-09-29 10:43:04 UTC
Created attachment 317948 [details]
Add support for RPM provides

Attaching a self-explainatory patch. It enables you to say something like, no matter if perl(Test::More) comes from "perl" or "perl-Test-More" RPM.

package { "perl(Test::More)": ensure=> installed; }

Comment 1 Lubomir Rintel 2008-09-29 10:45:00 UTC
A side note; the way I differentiate between packages and provides is rather ugly. Another option would to rewrite the whole rpm.rb to use rpmlib directly (does a ruby backend exist at all?) -- launching rpm --provides for each installed package would take too much time.

Comment 2 Lubomir Rintel 2008-09-29 14:32:36 UTC
Now I realize the patch probably cause a regression when an installed package provide what is other installed package's name and you want to ensure the other installed package to be absent.

Comment 3 Jeroen van Meeuwen 2008-12-16 09:37:08 UTC
(In reply to comment #0)
> Created an attachment (id=317948) [details]
> Add support for RPM provides
> 
> Attaching a self-explainatory patch. It enables you to say something like, no
> matter if perl(Test::More) comes from "perl" or "perl-Test-More" RPM.
> 
> package { "perl(Test::More)": ensure=> installed; }
>

Interesting, but how well does this work for package managers other then RPM?


Note You need to log in before you can comment on or make changes to this bug.