static inline PoolProxyIterator pkgBegin() { return poolProxyBegin<Package>(); }
static inline PoolProxyIterator pkgEnd() { return poolProxyEnd<Package>(); }
-// static inline PoolProxyIterator langBegin() { return poolProxyBegin<Language>(); }
-// static inline PoolProxyIterator langEnd() { return poolProxyEnd<Language>(); }
-
static inline PoolProxyIterator patchesBegin() { return poolProxyBegin<Patch>(); }
static inline PoolProxyIterator patchesEnd() { return poolProxyEnd<Patch>(); }
static void addDirectlySelectedPackages ( set<string> & pkgNames );
template<class PkgSet_T> void addPkgSetPackages( set<string> & pkgNames );
- static void addPatternPackages ( set<string> & pkgNames );
static void addPatchPackages ( set<string> & pkgNames );
DBG << "Collecting packages the user explicitly asked for" << endl;
addDirectlySelectedPackages ( pkgNames );
- addPatternPackages ( pkgNames );
addPatchPackages ( pkgNames );
return pkgNames;
}
-
- static void addPatternPackages( set<string> & pkgNames )
- {
- addPkgSetPackages<Pattern>( pkgNames );
- }
-
-
- /**
- * Template to handle Patterns
- **/
- template<class PkgSet_T> void addPkgSetPackages( set<string> & pkgNames )
- {
- for ( PoolProxyIterator it = poolProxyBegin<PkgSet_T>();
- it != poolProxyEnd<PkgSet_T>();
- ++it )
- {
- // Take all pkg sets (patterns) into account that
- // will be transacted, no matter if the user explicitly asked
- // for that pkg set or if the patterns is required by another
- // pkg set of the same class
-
- typename PkgSet_T::constPtr pkgSet = dynamic_pointer_cast<const PkgSet_T>( (*it)->theObj() ? (*it)->theObj().resolvable() : 0L );
-
- if ( pkgSet && (*it)->toModify() )
- {
- DBG << (*it)->theObj()->kind().asString()
- << " will be transacted: \"" << pkgSet->name() << "\"" << endl;
-
-#warning NEEDS FIX
- set<string> setPkgs;// = pkgSet->install_packages();
- pkgNames.insert( setPkgs.begin(), setPkgs.end() );
- }
- }
- }
-
-
static void addPatchPackages( set<string> & pkgNames )
{
for ( PoolProxyIterator patch_it = patchesBegin();