Jan-Simon Möller wrote:
# # substitute for Z.addResolvables() !!
print "Available" # ... and so on
In 11.0 the replacement for the 10.3 addResolvables() is RepoManager::loadFromCache() which gets passed the RepoInfo you constructed yourself or you got from RepoManager::knownRepositories (which reads from repos.d ) For installed packages: ZYpp::Ptr z = getZYpp(); z->initializeTarget("/"); z->target()->load(); (this caches the rpmdb on a solv file, if needed and loads it ) You can also do the same as a lower level, by adding a solv file manually (this is useful for testsuites or testcases) sat::Pool::instance().addRepoSolv("foo.solv", "name"); In this case, the objects will be added as installed if name == @System. Duncan -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org