https://bugzilla.novell.com/show_bug.cgi?id=381340 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=381340#c4 --- Comment #4 from Michael Andres <ma@novell.com> 2008-04-22 02:40:18 MST --- (In reply to comment #1 from Ladislav Slezak)
Currently there is no way to get the kind of resolvable from libzypp (from an Capability object).
Satsolver has a slightly different concept of capability. Apart from that it's IMO the wrong way if one tries to analyze the structure of a capability trying to find something the looks like a package the solver might select. The right way would be to ask the solver about the possiblke providers: Pattern::Contents Pattern::core() const { // get items providing the requirements sat::WhatProvides prv( requires() ); // return packages only. return Pattern::Contents( make_filter_begin( filter::byKind<Package>(), prv make_filter_end( filter::byKind<Package>(), prv ) ); } Pattern currently provides: /** Ui hint: Required Packages. */ Contents core() const; /** Ui hint: Dependent packages. * This also includes recommended and suugested packages. */ Contents depends() const; /** The collection of packages associated with this pattern. * This also evaluates the patterns includes/extends relation. */ Contents contents() const; Pattern::core was just added in SVN. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.