Bug 464472

Summary: [PATCH] Puppet doesn't deal with RPM provides correctly
Product: [Fedora] Fedora EPEL Reporter: Lubomir Rintel <lkundrak>
Component: puppetAssignee: David Lutterkort <lutter>
Status: CLOSED DEFERRED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: el5CC: hbrock, k.georgiou, lutter, mastahnke, tmz, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: ActualBug
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-26 07:31:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Add support for RPM provides none

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?