Author: dmacvicar Date: Fri Feb 8 19:12:45 2008 New Revision: 8582 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8582&view=rev Log: add addRepo filter Modified: branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.cc branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.h Modified: branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.cc?rev=8582&r1=8581&r2=8582&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.cc Fri Feb 8 19:12:45 2008 @@ -139,6 +139,9 @@ } } + void PoolQuery::addRepo(const std::string &repoalias) + { _pimpl->_repos.push_back(repoalias); } + void PoolQuery::setFlags(int flags) { _pimpl->_flags = flags; } Modified: branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.h?rev=8582&r1=8581&r2=8582&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.h (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/PoolQuery.h Fri Feb 8 19:12:45 2008 @@ -59,6 +59,15 @@ */ void addKind(const Resolvable::Kind &kind); + + /** + * Filter by repo. + * + * By default, all repos will be returned. If addRepo() is used, + * only the specified repo will be returned (multiple repos will be ORed). + */ + void addRepo(const std::string &repoalias); + /** * Filter by selectable name. * -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org