53 template<
typename T>
bool contains(
const std::set<T> & container, T search )
55 return container.find( search ) != container.end();
72 DBG <<
"Collecting packages the user explicitly asked for" << endl;
94 DBG <<
"Explicit user transaction on pkg \"" << (*it)->name() <<
"\"" << endl;
96 pkgNames.insert( (*it)->name() );
105 addPkgSetPackages<Pattern>( pkgNames );
115 it != poolProxyEnd<PkgSet_T>();
123 typename PkgSet_T::constPtr pkgSet = dynamic_pointer_cast<
const PkgSet_T>( (*it)->theObj() ? (*it)->theObj().resolvable() : 0L );
125 if ( pkgSet && (*it)->toModify() )
127 DBG << (*it)->theObj()->kind().asString()
128 <<
" will be transacted: \"" << pkgSet->name() <<
"\"" << endl;
132 pkgNames.insert( setPkgs.begin(), setPkgs.end() );
144 Patch::constPtr patch = dynamic_pointer_cast<
const Patch>( (*patch_it)->theObj() ? (*patch_it)->theObj().resolvable() : 0 );
146 if ( patch && (*patch_it)->toModify() )
148 DBG <<
"Patch will be transacted: \"" << patch->name()
149 <<
"\" - \"" << patch->summary() <<
"\"" << endl;
152 for_( it, contents.begin(), contents.end() )
154 pkgNames.insert( it->name() );
static PoolProxyIterator pkgBegin()
PoolProxyIterator poolProxyBegin()
const_iterator byKindBegin(const ResKind &kind_r) const
static PoolProxyIterator patchesEnd()
static void addDirectlySelectedPackages(set< string > &pkgNames)
static void addPatchPackages(set< string > &pkgNames)
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Class representing a patch.
ResPool::instance().proxy();.
static PoolProxyIterator pkgEnd()
static void addPatternPackages(set< string > &pkgNames)
set< string > userWantedPackageNames()
This returns a set of package names the user explicitly wanted to transact ( to install, to update, or to delete) for any of the following reasons:
PoolProxyIterator poolProxyEnd()
const_iterator byKindEnd(const ResKind &kind_r) const
TraitsType::constPtrType constPtr
static PoolProxyIterator patchesBegin()
void addPkgSetPackages(set< string > &pkgNames)
Template to handle Patterns.
static ResPoolProxy poolProxy()
MapKVIteratorTraits< SelectablePool >::Value_const_iterator const_iterator
bool contains(const std::set< T > &container, T search)
ResPoolProxy::const_iterator PoolProxyIterator
Solvable set wrapper to allow adding additioanal convenience iterators.