https://bugzilla.novell.com/show_bug.cgi?id=265826#c2
Michael Andres changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Michael Andres 2007-08-03 12:20:28 MST ---
I know we have a Pattern::install_packages, but this is an artefact of
Selections. AFAIK in zypp this method never honored the Locale argument,
and is meanwhile tagged deprecated.
While old Selections indeed listed 'their packages', Patterns just define
dependencies (requirements and recommendations).
So a Pattern is not able to tell you a list of packages
You need a pool defining the available packages and a solver evaluating the
Patterns dependencies.
For languages you must query the pool for all items that indicate support
for a certain language. Something like:
// call dosomething for all items in pool that freshen language "de"
Capability _cap( CapFactory().parse<Language>( "de" ) );
forEachMatchIn( pool, Dep::FRESHENS, _cap, dosomething );
BTW: You can ask Huha to put the common code into zypp/ui (namespace zypp::ui),
if it is not ui specific. There are several classes he implemented there.
But we can't introduce such a method in zypp::Language.
--
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.