-#ADD_SUBDIRECTORY( registration )
+ADD_SUBDIRECTORY( registration )
ADD_SUBDIRECTORY( package-manager )
#ADD_SUBDIRECTORY( cachetools )
-#ADD_SUBDIRECTORY( migrate-sources )
\ No newline at end of file
+#ADD_SUBDIRECTORY( migrate-sources )
TARGET_LINK_LIBRARIES( zypp-query-pool xml2 )
TARGET_LINK_LIBRARIES( zypp-query-pool ${SATSOLVER_LIBRARY} )
-INSTALL(TARGETS zypp-query-pool RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/zypp )
\ No newline at end of file
+#INSTALL(TARGETS zypp-query-pool RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/zypp )
: _repository( repository )
{ }
- bool operator()( PoolItem_Ref item )
+ bool operator()( PoolItem item )
{
if (_repository.empty()
|| _repository == item->repository().info().alias())
if (filter == "packages") kind = ResTraits<zypp::Package>::kind;
else if (filter == "patches") kind = ResTraits<zypp::Patch>::kind;
else if (filter == "patterns") kind = ResTraits<zypp::Pattern>::kind;
- else if (filter == "selections") kind = ResTraits<zypp::Selection>::kind;
else if (filter == "products") kind = ResTraits<zypp::Product>::kind;
else if (filter != FILTER_ALL)
{
MIL << "Must build cache..." << repo << endl;
repoManager.buildCache( repo );
}
- Z->addResolvables( repoManager.createFromCache( repo ).resolvables() );
+ repoManager.loadFromCache( repo );
}
MIL << "Loaded enabled repositories." << endl;
}
}
// add resolvables from the system
- if ( filter != FILTER_ALL )
- {
- MIL << "Loading target (" << kind << ")..." << endl;
- ResStore items;
- for (ResStore::resfilter_const_iterator it = Z->target()->byKindBegin(kind); it != Z->target()->byKindEnd(kind); ++it)
- {
- SEC << *it << endl;
- items.insert(*it);
- }
- Z->addResolvables( items, true );
- }
- else
- {
- // no filter, just add themm all
- MIL << "Loading target..." << endl;
- Z->addResolvables( Z->target()->resolvables(), true );
- }
+ MIL << "Loading target..." << endl;
+ Z->target()->load();
+
MIL << "Loaded target." << endl;