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; }
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.
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.
(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?