-------------------------------------------------------------------
+Thu Jul 19 12:58:12 CEST 2007 - ma@suse.de
+
+- Query ByRepository now takes as well an alias.
+
+-------------------------------------------------------------------
Wed Jul 18 16:40:35 CEST 2007 - dmacvicar@suse.de
- fix retrieval of container attributes in cache
};
- /** Select ResObject by repository. */
+ /** Select ResObject by repository or repository alias. */
struct ByRepository : public ResObjectFilterFunctor
{
ByRepository( Repository repository_r )
- : _repository( repository_r )
+ : _alias( repository_r.info().alias() )
+ {}
+
+ ByRepository( const std::string & alias_r )
+ : _alias( alias_r )
{}
bool operator()( ResObject::constPtr p ) const
{
- return p->repository() == _repository;
+ return p->repository().info().alias() == _alias;
}
- Repository _repository;
+ std::string _alias;
};