#include "pooltypes.h"
#include "pool.h"
#include "repodata.h"
Go to the source code of this file.
#define FOR_REPO_SOLVABLES | ( | r, | |||
p, | |||||
s | ) |
Value:
for (p = (r)->start, s = (r)->pool->solvables + p; p < (r)->end; p++, s = (r)->pool->solvables + p) \ if (s->repo == (r))
Definition at line 108 of file repo.h.
Referenced by pool_calc_duchanges(), pool_calc_installsizechange(), solvable_trivial_installable_repo(), solver_createdupmaps(), solver_solve(), transaction_add_obsoleted(), transaction_calculate(), transaction_check_order(), transaction_create_installedmap(), and transaction_installedresult().
#define SEARCH_NEXT_KEY 1 |
#define SEARCH_NEXT_SOLVABLE 2 |
#define SEARCH_ENTERSUB -1 |
#define SEARCH_STRINGMASK 15 |
Definition at line 157 of file repo.h.
Referenced by dataiterator_filelistcheck(), dataiterator_step(), datamatcher_free(), datamatcher_init(), and datamatcher_match().
#define SEARCH_STRING 1 |
Definition at line 158 of file repo.h.
Referenced by dataiterator_filelistcheck(), dataiterator_step(), and datamatcher_match().
#define SEARCH_STRINGSTART 2 |
#define SEARCH_STRINGEND 3 |
#define SEARCH_SUBSTRING 4 |
#define SEARCH_GLOB 5 |
#define SEARCH_REGEX 6 |
Definition at line 163 of file repo.h.
Referenced by datamatcher_free(), datamatcher_init(), and datamatcher_match().
#define SEARCH_ERROR 15 |
#define SEARCH_NOCASE (1<<7) |
Definition at line 165 of file repo.h.
Referenced by dataiterator_filelistcheck(), dataiterator_step(), datamatcher_init(), and datamatcher_match().
#define SEARCH_NO_STORAGE_SOLVABLE (1<<8) |
#define SEARCH_SUB (1<<9) |
#define SEARCH_ARRAYSENTINEL (1<<10) |
Definition at line 170 of file repo.h.
Referenced by dataiterator_step(), repodata_search(), and solvable_lookup_idarray().
#define SEARCH_DISABLED_REPOS (1<<11) |
#define SEARCH_COMPLETE_FILELIST (1<<12) |
Definition at line 172 of file repo.h.
Referenced by dataiterator_filelistcheck(), and repo_search_md().
#define SEARCH_SKIP_KIND (1<<16) |
#define SEARCH_FILES (1<<17) |
#define SEARCH_CHECKSUMS (1<<18) |
#define SEARCH_THISSOLVID (1<<31) |
Definition at line 183 of file repo.h.
Referenced by dataiterator_clonepos(), dataiterator_init(), dataiterator_jump_to_repo(), dataiterator_jump_to_solvid(), dataiterator_set_match(), dataiterator_set_search(), and dataiterator_step().
#define REPO_REUSE_REPODATA (1 << 0) |
Definition at line 187 of file repo.h.
Referenced by repo_add_repodata(), and repo_add_solv_flags().
#define REPO_LOCALPOOL (1 << 2) |
Definition at line 189 of file repo.h.
Referenced by repo_add_repodata(), and repo_add_solv_flags().
#define REPO_USE_LOADING (1 << 3) |
Definition at line 190 of file repo.h.
Referenced by repo_add_repodata(), and repo_add_solv_flags().
#define REPO_EXTEND_SOLVABLES (1 << 4) |
#define DI_SEEK_STAY (1 << 16) |
#define DI_SEEK_CHILD 1 |
#define DI_SEEK_PARENT 2 |
#define DI_SEEK_REWIND 3 |
typedef struct _Datamatcher Datamatcher |
typedef struct _Dataiterator Dataiterator |
Definition at line 41 of file repo.c.
References _Repo::end, _Repo::name, _Pool::nrepos, _Repo::nsolvables, _Pool::nsolvables, _Repo::pool, pool_freewhatprovides(), _Repo::repoid, _Pool::repos, sat_calloc(), sat_realloc2(), and _Repo::start.
void repo_free | ( | Repo * | repo, | |
int | reuseids | |||
) |
Definition at line 117 of file repo.c.
References _Pool::nrepos, _Repo::pool, repo_empty(), repo_freedata(), _Repo::repoid, and _Pool::repos.
void repo_empty | ( | Repo * | repo, | |
int | reuseids | |||
) |
Definition at line 74 of file repo.c.
References _Repo::end, _Repo::idarraydata, _Repo::idarraysize, _Pool::installed, _Repo::lastoff, _Repo::nrepodata, _Repo::nsolvables, _Pool::nsolvables, _Repo::pool, pool_free_solvable_block(), pool_freewhatprovides(), _Solvable::repo, _Repo::repodata, repodata_freedata(), _Repo::rpmdbid, sat_free(), _Pool::solvables, and _Repo::start.
Referenced by repo_free().
void repo_freeallrepos | ( | Pool * | pool, | |
int | reuseids | |||
) |
Definition at line 140 of file repo.c.
References _Pool::nrepos, _Pool::nsolvables, pool_free_solvable_block(), pool_freewhatprovides(), repo_freedata(), _Pool::repos, and sat_free().
Referenced by pool_free().
Definition at line 153 of file repo.c.
References _Repodata::end, _Repo::end, _Repo::nsolvables, _Repo::pool, pool_free_solvable_block(), _Solvable::repo, _Repo::repodata, repodata_shrink(), and _Pool::solvables.
Referenced by repo_add_solv_flags().
void* repo_sidedata_create | ( | Repo * | repo, | |
size_t | size | |||
) |
Definition at line 180 of file repo.c.
References _Repo::end, REPO_SIDEDATA_BLOCK, sat_calloc_block(), and _Repo::start.
Referenced by repo_add_solv_flags().
Definition at line 186 of file repo.c.
References _Repo::end, REPO_SIDEDATA_BLOCK, sat_extend(), and _Repo::start.
Referenced by repo_add_solvable(), and repo_add_solvable_block().
Definition at line 213 of file repo.c.
References IDARRAY_BLOCK, _Repo::idarraydata, _Repo::idarraysize, _Repo::lastoff, sat_extend(), and sat_extend_resize().
Referenced by repo_addid_dep().
Definition at line 270 of file repo.c.
References _Repo::idarraydata, and repo_addid().
Referenced by addfileprovides_cb(), pool_add_fileconflicts_deps(), and repo_fix_supplements().
Definition at line 355 of file repo.c.
References IDARRAY_BLOCK, _Repo::idarraydata, _Repo::idarraysize, _Repo::lastoff, sat_extend(), and sat_extend_resize().
Referenced by repo_add_solv_flags().
Definition at line 406 of file repo.c.
References id2str(), _Repo::idarraydata, ISRELDEP, _Repo::pool, rel2id(), REL_AND, REL_NAMESPACE, REL_OR, REL_WITH, repo_addid_dep(), and str2id().
Definition at line 598 of file repo.c.
References id2str(), _Repo::idarraydata, ISRELDEP, _Repo::pool, rel2id(), REL_NAMESPACE, and str2id().
static const char* repo_name | ( | const Repo * | repo | ) | [inline, static] |
Definition at line 66 of file repo.h.
References _Repo::end, _Repo::nsolvables, _Repo::pool, pool_add_solvable(), _Solvable::repo, repo_sidedata_extend(), _Repo::rpmdbid, _Pool::solvables, and _Repo::start.
Definition at line 84 of file repo.h.
References _Repo::end, _Repo::nsolvables, _Repo::pool, pool_add_solvable_block(), _Solvable::repo, repo_sidedata_extend(), _Repo::rpmdbid, _Pool::solvables, and _Repo::start.
Referenced by repo_add_solv_flags().
Definition at line 115 of file repo.h.
References _Pool::repos.
Referenced by solver_createdupmaps().
Definition at line 120 of file repo.h.
References _Solvable::arch, _Pool::considered, _Repo::disabled, _Pool::id2arch, _Pool::lastarch, MAPTST, _Solvable::repo, and _Pool::solvables.
Referenced by findrecommendedsuggested(), policy_create_obsolete_index(), pool_createwhatprovides(), solver_addrpmrulesforsolvable(), solver_addrpmrulesforweak(), solver_createdupmaps(), solver_run_sat(), and solver_solve().
Definition at line 1019 of file repo.c.
References _Repo::nrepodata, REPO_LOCALPOOL, REPO_REUSE_REPODATA, REPO_USE_LOADING, _Repo::repodata, repodata_create(), repodata_freedata(), repodata_initdata(), REPODATA_LOADING, REPODATA_STUB, and _Repodata::state.
Referenced by repo_add_solv_flags(), repo_last_repodata(), and repodata_create_stubs().
Definition at line 1049 of file repo.c.
References _Repo::nrepodata, repo_add_repodata(), _Repo::repodata, REPODATA_STUB, and _Repodata::state.
Referenced by repo_add_poolstr_array(), repo_set_id(), repo_set_num(), repo_set_poolstr(), and repo_set_str().
void repo_search | ( | Repo * | repo, | |
Id | p, | |||
Id | key, | |||
const char * | match, | |||
int | flags, | |||
int(*)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv) | callback, | |||
void * | cbdata | |||
) |
Definition at line 845 of file repo.c.
References matchdata::callback, matchdata::callback_data, datamatcher_free(), datamatcher_init(), _Repo::disabled, matchdata::flags, matchdata::matcher, _Repo::pool, matchdata::pool, repo_search_md(), and SEARCH_DISABLED_REPOS.
Referenced by pool_calc_duchanges(), and pool_search().
Definition at line 864 of file repo.c.
References _Solvable::arch, _Repodata::end, _Solvable::evr, id2str(), _Repodata::keys, _Repokey::name, _Solvable::name, _Repodata::nkeys, _Repo::pool, matchdata::pool, _Repo::repodata, repodata_lookup_str(), repodata_precheck_keyname(), _Pool::solvables, SOLVID_META, _Repokey::type, and _Solvable::vendor.
Referenced by solvable_lookup_str().
Definition at line 898 of file repo.c.
References _Repodata::end, _Repodata::keys, _Repokey::name, _Repodata::nkeys, _Repo::repodata, repodata_lookup_num(), repodata_precheck_keyname(), _Repo::rpmdbid, SOLVID_META, _Repo::start, and _Repokey::type.
Referenced by solvable_lookup_num().
Definition at line 932 of file repo.c.
References _Solvable::arch, _Repodata::end, _Solvable::evr, _Repodata::keys, _Repodata::localpool, _Repokey::name, _Solvable::name, _Repodata::nkeys, _Repo::pool, _Repo::repodata, repodata_globalize_id(), repodata_lookup_id(), repodata_precheck_keyname(), _Pool::solvables, SOLVID_META, _Repokey::type, and _Solvable::vendor.
Referenced by solvable_lookup_id().
Definition at line 993 of file repo.c.
References _Repodata::end, _Repodata::keys, _Repokey::name, _Repodata::nkeys, _Repo::repodata, repodata_lookup_void(), repodata_precheck_keyname(), SOLVID_META, and _Repokey::type.
Referenced by solvable_lookup_void().
Definition at line 968 of file repo.c.
References _Repodata::end, _Repodata::keys, _Repokey::name, _Repodata::nkeys, _Repo::repodata, repodata_lookup_bin_checksum(), repodata_precheck_keyname(), and SOLVID_META.
Referenced by solvable_lookup_bin_checksum().
int datamatcher_init | ( | Datamatcher * | ma, | |
const char * | match, | |||
int | flags | |||
) |
Definition at line 927 of file repodata.c.
References _Datamatcher::error, _Datamatcher::flags, _Datamatcher::match, _Datamatcher::matchdata, sat_calloc(), sat_free(), SEARCH_ERROR, SEARCH_NOCASE, SEARCH_REGEX, and SEARCH_STRINGMASK.
Referenced by dataiterator_init(), dataiterator_init_clone(), dataiterator_set_match(), and repo_search().
void datamatcher_free | ( | Datamatcher * | ma | ) |
Definition at line 947 of file repodata.c.
References _Datamatcher::flags, _Datamatcher::matchdata, sat_free(), SEARCH_REGEX, and SEARCH_STRINGMASK.
Referenced by dataiterator_free(), dataiterator_set_match(), and repo_search().
int datamatcher_match | ( | Datamatcher * | ma, | |
const char * | str | |||
) |
Definition at line 957 of file repodata.c.
References _Datamatcher::flags, _Datamatcher::match, _Datamatcher::matchdata, SEARCH_GLOB, SEARCH_NOCASE, SEARCH_REGEX, SEARCH_STRING, SEARCH_STRINGEND, SEARCH_STRINGMASK, SEARCH_STRINGSTART, and SEARCH_SUBSTRING.
Referenced by dataiterator_match(), dataiterator_step(), and repo_matchvalue().
int dataiterator_init | ( | Dataiterator * | di, | |
Pool * | pool, | |||
Repo * | repo, | |||
Id | p, | |||
Id | keyname, | |||
const char * | match, | |||
int | flags | |||
) |
Definition at line 1070 of file repodata.c.
References dataiterator_set_search(), datamatcher_init(), di_bye, _Dataiterator::flags, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::matcher, _Repo::pool, _Dataiterator::pool, SEARCH_THISSOLVID, and _Dataiterator::state.
Referenced by repodata_create_stubs(), and solvable_lookup_idarray().
void dataiterator_init_clone | ( | Dataiterator * | di, | |
Dataiterator * | from | |||
) |
Definition at line 1096 of file repodata.c.
References datamatcher_init(), _Datamatcher::flags, _Dataiterator::kv, _Dataiterator::di_parent::kv, _Datamatcher::match, _Dataiterator::matcher, _Dataiterator::nparents, _KeyValue::parent, and _Dataiterator::parents.
void dataiterator_set_search | ( | Dataiterator * | di, | |
Repo * | repo, | |||
Id | p | |||
) |
Definition at line 1131 of file repodata.c.
References dataiterator_jump_to_solvid(), di_bye, di_enterrepo, _Dataiterator::flags, _Dataiterator::nparents, _Pool::nrepos, _Dataiterator::pool, _Dataiterator::repo, _Dataiterator::repodataid, _Dataiterator::repoid, _Pool::repos, _Dataiterator::rootlevel, SEARCH_THISSOLVID, and _Dataiterator::state.
Referenced by dataiterator_init().
void dataiterator_set_keyname | ( | Dataiterator * | di, | |
Id | keyname | |||
) |
Definition at line 1155 of file repodata.c.
References _Dataiterator::keyname, _Dataiterator::keynames, and _Dataiterator::nkeynames.
int dataiterator_set_match | ( | Dataiterator * | di, | |
const char * | match, | |||
int | flags | |||
) |
Definition at line 1113 of file repodata.c.
References datamatcher_free(), datamatcher_init(), di_bye, _Dataiterator::flags, _Dataiterator::matcher, SEARCH_THISSOLVID, and _Dataiterator::state.
void dataiterator_prepend_keyname | ( | Dataiterator * | di, | |
Id | keyname | |||
) |
Definition at line 1163 of file repodata.c.
References di_bye, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::nkeynames, and _Dataiterator::state.
void dataiterator_free | ( | Dataiterator * | di | ) |
Definition at line 1179 of file repodata.c.
References datamatcher_free(), _Datamatcher::match, and _Dataiterator::matcher.
Referenced by repodata_create_stubs(), and solvable_lookup_idarray().
int dataiterator_step | ( | Dataiterator * | di | ) |
Definition at line 1223 of file repodata.c.
References _Dataiterator::data, data_fetch(), data_read_id(), data_skip_schema(), dataiterator_filelistcheck(), dataiterator_find_keyname(), datamatcher_match(), _Dataiterator::ddp, di_bye, di_enterarray, di_enterkey, di_enterrepo, di_enterrepodata, di_enterschema, di_entersolvable, di_entersolvablekey, di_entersub, di_leavesub, di_nextarrayelement, di_nextattr, di_nextkey, di_nextrepo, di_nextrepodata, di_nextsolvable, di_nextsolvableattr, di_nextsolvablekey, _Repo::disabled, _Dataiterator::di_parent::dp, _Dataiterator::dp, _Repo::end, _KeyValue::entry, _KeyValue::eof, _Datamatcher::flags, _Dataiterator::flags, get_data(), _KeyValue::id, _Dataiterator::idp, _Dataiterator::key, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::di_parent::keyp, _Dataiterator::keyp, _Repodata::keys, _Dataiterator::di_parent::kv, _Dataiterator::kv, _Datamatcher::match, _Dataiterator::matcher, maybe_load_repodata(), _Repokey::name, _Dataiterator::nkeynames, _Dataiterator::nparents, _Repo::nrepodata, _Pool::nrepos, _KeyValue::num, _KeyValue::parent, _Dataiterator::parents, _Dataiterator::pool, _Pool::pos, _Solvable::repo, _Dataiterator::repo, _Repo::repodata, repodata_stringify(), _Dataiterator::repodataid, _Dataiterator::repoid, _Pool::repos, _Dataiterator::rootlevel, _Repodata::schemadata, _Repodata::schemata, SEARCH_ARRAYSENTINEL, SEARCH_DISABLED_REPOS, SEARCH_FILES, SEARCH_NO_STORAGE_SOLVABLE, SEARCH_NOCASE, SEARCH_STRING, SEARCH_STRINGMASK, SEARCH_SUB, SEARCH_THISSOLVID, solvabledata_fetch(), _Pool::solvables, _Repopos::solvid, _Dataiterator::solvid, solvid2data(), SOLVID_POS, _Repo::start, _Dataiterator::state, _KeyValue::str, and _Repokey::type.
Referenced by repodata_create_stubs(), and solvable_lookup_idarray().
void dataiterator_setpos | ( | Dataiterator * | di | ) |
Definition at line 1480 of file repodata.c.
References _Dataiterator::data, _Repopos::dp, _KeyValue::eof, _KeyValue::id, _Repodata::incoredata, _Dataiterator::kv, _Dataiterator::pool, pool_clear_pos(), _Pool::pos, _Dataiterator::repo, _Repopos::repo, _Repo::repodata, _Repopos::repodataid, _Repopos::schema, _Dataiterator::solvid, _Repopos::solvid, and _KeyValue::str.
void dataiterator_setpos_parent | ( | Dataiterator * | di | ) |
Definition at line 1495 of file repodata.c.
References _Dataiterator::data, _Repopos::dp, _KeyValue::eof, _KeyValue::id, _Repodata::incoredata, _Dataiterator::kv, _KeyValue::parent, _Dataiterator::pool, pool_clear_pos(), _Pool::pos, _Dataiterator::repo, _Repopos::repo, _Repo::repodata, _Repopos::repodataid, _Repopos::schema, _Dataiterator::solvid, _Repopos::solvid, and _KeyValue::str.
int dataiterator_match | ( | Dataiterator * | di, | |
Datamatcher * | ma | |||
) |
Definition at line 1674 of file repodata.c.
References _Dataiterator::data, datamatcher_match(), _Dataiterator::flags, _Dataiterator::key, _Dataiterator::kv, _Dataiterator::pool, repodata_stringify(), and _KeyValue::str.
void dataiterator_skip_attribute | ( | Dataiterator * | di | ) |
Definition at line 1586 of file repodata.c.
References di_nextkey, di_nextsolvableattr, di_nextsolvablekey, and _Dataiterator::state.
void dataiterator_skip_solvable | ( | Dataiterator * | di | ) |
Definition at line 1595 of file repodata.c.
References di_nextsolvable, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::rootlevel, and _Dataiterator::state.
void dataiterator_skip_repo | ( | Dataiterator * | di | ) |
Definition at line 1605 of file repodata.c.
References di_nextrepo, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::rootlevel, and _Dataiterator::state.
void dataiterator_jump_to_solvid | ( | Dataiterator * | di, | |
Id | solvid | |||
) |
Definition at line 1615 of file repodata.c.
References _Dataiterator::data, di_bye, di_enterrepo, _Dataiterator::flags, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::kv, _Dataiterator::nparents, _Pool::nrepos, _KeyValue::parent, _Dataiterator::pool, _Pool::pos, _Solvable::repo, _Repopos::repo, _Dataiterator::repo, _Repo::repodata, _Dataiterator::repodataid, _Repopos::repodataid, _Dataiterator::repoid, _Pool::repos, _Dataiterator::rootlevel, SEARCH_THISSOLVID, _Pool::solvables, _Dataiterator::solvid, SOLVID_POS, and _Dataiterator::state.
Referenced by dataiterator_set_search().
void dataiterator_jump_to_repo | ( | Dataiterator * | di, | |
Repo * | repo | |||
) |
Definition at line 1660 of file repodata.c.
References di_enterrepo, _Dataiterator::flags, _Dataiterator::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::repo, _Dataiterator::repodataid, _Dataiterator::repoid, _Dataiterator::rootlevel, SEARCH_THISSOLVID, _Dataiterator::solvid, and _Dataiterator::state.
void dataiterator_entersub | ( | Dataiterator * | di | ) |
Definition at line 1473 of file repodata.c.
References di_entersub, di_nextarrayelement, and _Dataiterator::state.
Referenced by repodata_create_stubs().
void dataiterator_clonepos | ( | Dataiterator * | di, | |
Dataiterator * | from | |||
) |
Definition at line 1511 of file repodata.c.
References _Dataiterator::data, _Dataiterator::ddp, _Dataiterator::dp, _Dataiterator::flags, _Dataiterator::idp, _Dataiterator::key, _Dataiterator::keyp, _Dataiterator::di_parent::kv, _Dataiterator::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::parents, _Dataiterator::repo, _Dataiterator::repodataid, _Dataiterator::repoid, _Dataiterator::rootlevel, SEARCH_THISSOLVID, _Dataiterator::solvid, and _Dataiterator::state.
void dataiterator_seek | ( | Dataiterator * | di, | |
int | whence | |||
) |
Definition at line 1540 of file repodata.c.
References _Dataiterator::data, _Dataiterator::ddp, di_bye, di_enterschema, di_entersub, di_nextarrayelement, DI_SEEK_CHILD, DI_SEEK_PARENT, DI_SEEK_REWIND, DI_SEEK_STAY, _Dataiterator::di_parent::dp, _Dataiterator::dp, _KeyValue::id, _Dataiterator::key, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::di_parent::keyp, _Dataiterator::keyp, _Repodata::keys, _Dataiterator::di_parent::kv, _Dataiterator::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::parents, _Dataiterator::rootlevel, _Repodata::schemadata, _Repodata::schemata, _Dataiterator::state, and _KeyValue::str.
Definition at line 1080 of file repo.c.
References repo_last_repodata(), and repodata_set_poolstr().
Definition at line 1087 of file repo.c.
References repo_last_repodata(), and repodata_add_poolstr_array().
void repo_internalize | ( | Repo * | repo | ) |
Definition at line 1094 of file repo.c.
References _Repodata::attrs, _Repo::repodata, repodata_internalize(), and _Repodata::xattrs.
void repo_disable_paging | ( | Repo * | repo | ) |