Mailinglist Archive: zypp-devel (84 mails)

< Previous Next >
Re: [zypp-devel] new workflow / libzypp-bindings
  • From: Duncan Mac-Vicar Prett <dmacvicar@xxxxxxx>
  • Date: Mon, 11 Aug 2008 11:24:45 +0200
  • Message-id: <48A0055D.7050803@xxxxxxx>
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("/");

(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.


To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >