for (SourceManager::Source_const_iterator it = manager->Source_begin(); it != manager->Source_end(); ++it) {
zypp::ResStore store = it->resolvables();
- MIL << "Catalog " << it->id() << " contributing " << store.size() << " resolvables" << endl;
+ MIL << "Repository " << it->id() << " contributing " << store.size() << " resolvables" << endl;
z->addResolvables( store, false );
}
{
ZYpp::Ptr z = getZYpp();
- Measure open_repository_timer("CacheStore: lookupOrAppendCatalog");
+ Measure open_repository_timer("CacheStore: lookupOrAppendRepository");
cache::CacheStore store(getenv("PWD"));
- data::RecordId repository_id = store.lookupOrAppendCatalog( Url("http://some.url"), "/");
+ data::RecordId repository_id = store.lookupOrAppendRepository( Url("http://some.url"), "/");
open_repository_timer.stop();
Pathname reporoot( "lmd" );
cache::CacheStore store( dbdir );
- data::RecordId repositoryId = store.lookupOrAppendCatalog( Url("dir:///"), "/" );
+ data::RecordId repositoryId = store.lookupOrAppendRepository( Url("dir:///"), "/" );
{
Measure x( "XXXXXXXXXXXXX" );
Pathname metadir( "lmd" );
cache::CacheStore store( dbdir );
- data::RecordId repositoryId = store.lookupOrAppendCatalog( Url("http://www.google.com"), "/" );
+ data::RecordId repositoryId = store.lookupOrAppendRepository( Url("http://www.google.com"), "/" );
RepoParser( metadir, repositoryId, store );
Pathname dbfile( "data.db" );
cache::CacheStore store(getenv("PWD"));
- data::RecordId repository_id = store.lookupOrAppendCatalog( Url("http://www.google.com"), "/");
+ data::RecordId repository_id = store.lookupOrAppendRepository( Url("http://www.google.com"), "/");
PackagesParser parser( repository_id, store);
Measure m;
{
cache::CacheStore store(tmpdir.path());
- data::RecordId repository_id = store.lookupOrAppendCatalog( Url("http://novell.com"), "/");
+ data::RecordId repository_id = store.lookupOrAppendRepository( Url("http://novell.com"), "/");
zypp::debug::Measure cap_parse_timer("store resolvables");
for ( list<MiniResolvable>::iterator it = res_list.begin(); it != res_list.end(); it++)
cache::CacheStore store(tmpdir.path());
- repository_id = store.lookupOrAppendCatalog( Url("http://novell.com"), "/");
+ repository_id = store.lookupOrAppendRepository( Url("http://novell.com"), "/");
zypp::debug::Measure cap_parse_timer("store resolvables");
for ( list<MiniResolvable>::iterator it = res_list.begin(); it != res_list.end(); it++)
for (SourceManager::Source_const_iterator it = manager->Source_begin(); it != manager->Source_end(); ++it)
{
zypp::ResStore store = it->resolvables();
- MIL << "Catalog " << it->id() << " contributing " << store.size() << " resolvables" << endl;
+ MIL << "Repository " << it->id() << " contributing " << store.size() << " resolvables" << endl;
Z->addResolvables( store, false );
}
appendStringAttribute( pkgid, "Package", "location", package->repositoryLocation.filePath.asString() );
}
-void CacheStore::consumeSourcePackage( const data::RecordId &catalog_id, data::SrcPackage_Ptr srcpackage )
+void CacheStore::consumeSourcePackage( const data::RecordId &repository_id, data::SrcPackage_Ptr srcpackage )
{
#warning TBD
}
-void CacheStore::consumePatch( const data::RecordId &catalog_id, data::Patch_Ptr patch)
+void CacheStore::consumePatch( const data::RecordId &repository_id, data::Patch_Ptr patch)
{
RecordId id = appendResolvable( repository_id, ResTraits<Patch>::kind, NVRA( patch->name, patch->edition, patch->arch ), patch->deps );
consumeResObject( id, patch );
return static_cast<RecordId>(id);
}
-void CacheStore::updateCatalog( const RecordId &id,
+void CacheStore::updateRepository( const RecordId &id,
const string &checksum,
const Date ×tamp )
{
_pimpl->insert_repository_cmd->executenonquery();
}
-RecordId CacheStore::lookupOrAppendCatalog( const Url &url, const Pathname &path )
+RecordId CacheStore::lookupOrAppendRepository( const Url &url, const Pathname &path )
{
_pimpl->select_repository_cmd->bind(":url", url.asString());
_pimpl->select_repository_cmd->bind(":path", path.asString());
* \code
* CacheStore store("/path");
* RecordId repository_id =
- * store.lookupOrAppendCatalog("http://updates.novell.com", "/");
+ * store.lookupOrAppendRepository("http://updates.novell.com", "/");
* store.consumePackage( repository_id, package_ptr );
* store.commit();
* \endcode
*
* You have to specify the RecordId for the repository owning
* this resolvable. Yuu can obtain it with
- * \ref lookupOrAppendCatalog
+ * \ref lookupOrAppendRepository
*
* You can create those \a deps using \ref capability::parse
* functions, or the build methods to create specific types
* be created and the new inserted entry's id will
* be returned.
*/
- data::RecordId lookupOrAppendCatalog( const Url &url,
+ data::RecordId lookupOrAppendRepository( const Url &url,
const Pathname &path );
/**
*
* It is responsability of the caller to operate with
* a valid record id. You can get one
- * Using \ref lookupOrAppendCatalog
+ * Using \ref lookupOrAppendRepository
*/
- void updateCatalog( const data::RecordId &id,
+ void updateRepository( const data::RecordId &id,
const std::string &checksum,
const Date ×tamp = Date::now() );
void consumePkg( const data::Package_Ptr & data_r )
{
SEC << "[Package]" << data_r << endl;
- _consumer.consumePackage( _catalogId, data_r );
+ _consumer.consumePackage( _repositoryId, data_r );
}
void consumeSrcPkg( const data::SrcPackage_Ptr & data_r )
{
SEC << "[SrcPackage]" << data_r << endl;
- _consumer.consumeSourcePackage( _catalogId, data_r );
+ _consumer.consumeSourcePackage( _repositoryId, data_r );
}
void consumePat( const data::Pattern_Ptr & data_r )
{
SEC << "[Pattern]" << data_r << endl;
- _consumer.consumePattern( _catalogId, data_r );
+ _consumer.consumePattern( _repositoryId, data_r );
}
//@}
* Pathname reporoot( "lmd" );
*
* cache::CacheStore store( dbdir );
- * data::RecordId catalogId = store.lookupOrAppendCatalog( Url("dir:///somewhere"), "/" );
+ * data::RecordId catalogId = store.lookupOrAppendRepository( Url("dir:///somewhere"), "/" );
*
* parser::susetags::RepoParser repo( catalogId, store );
* repo.parse( reporoot );
* \code
*
* cache::CacheStore store(dbdir);
- * data::RecordId repository_id = store.lookupOrAppendCatalog(sourceurl, "/");
+ * data::RecordId repository_id = store.lookupOrAppendRepository(sourceurl, "/");
*
* YUMParser parser(repository_id, store, &progress_function);
* parser.start(source_cache_dir);