+-------------------------------------------------------------------
+Tue Apr 22 10:33:03 CEST 2008 - ma@suse.de
+
+- Added Pattern::core returning the packages required by a pattern.
+ (see also Pattern::depends and Pattern::contents).
+- revision 9771
+
-------------------------------------------------------------------
Mon Apr 21 15:38:10 CEST 2008 - ma@suse.de
Pattern::NameList Pattern::extends() const
{ return NameList( sat::SolvAttr::extends, satSolvable() ); }
+ 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::Contents Pattern::depends() const
{
// load requires, recommends, suggests
/** Ui hint: patterns this one extends. */
NameList extends() const;
- /** Ui hint: Dependent packages. */
+ /** 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.