Mailinglist Archive: zypp-devel (116 mails)
| < Previous | Next > |
[zypp-devel] status 04.06
- From: Duncan Mac-Vicar Prett <dmacvicar@xxxxxxx>
- Date: Mon, 4 Jun 2007 16:29:28 +0200
- Message-id: <200706041629.28966.dmacvicar@xxxxxxx>
revision 5664
Here you can find a basic workflow working.
How does it looks like? (RepoManager_test case)
RepoManager manager(opts);
list<RepoInfo> repos = manager.knownRepositories();
RepoInfo repo(repos.front());
manager.refreshMetadata(repo);
Repository repository;
try {
repository = manager.createFromCache(repo);
}
catch ( const RepoNotCachedException &e )
{
ZYPP_CAUGHT(e);
MIL << "repo " << repo.alias() << " not cached yet. Caching..." << endl;
manager.buildCache(repo);
repository = manager.createFromCache(repo);
}
ResStore store = repository.resolvables();
MIL << store.size() << " resolvables" << endl;
I am still getting 0 resolvables, unlike in CacheStore_test where I use a
custom parse and I insert resolvables via appendResolvables, so I am not sure
if it is a YUMParser bug or CacheStore bug.... will look at it.
All paths are passed in the RepoManagerOptions parameter, which default to the
ZYpp global paths.
--
Duncan Mac-Vicar Prett
Novell :: SUSE R&D, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |