#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>
#include "pool.h"
#include "repo.h"
#include "util.h"
#include "chksum.h"
Go to the source code of this file.
Functions | |
const char * | pool_solvable2str (Pool *pool, Solvable *s) |
Id | solvable_lookup_id (Solvable *s, Id keyname) |
int | solvable_lookup_idarray (Solvable *s, Id keyname, Queue *q) |
const char * | solvable_lookup_str (Solvable *s, Id keyname) |
static const char * | solvable_lookup_str_base (Solvable *s, Id keyname, Id basekeyname, int usebase) |
const char * | solvable_lookup_str_poollang (Solvable *s, Id keyname) |
const char * | solvable_lookup_str_lang (Solvable *s, Id keyname, const char *lang, int usebase) |
unsigned int | solvable_lookup_num (Solvable *s, Id keyname, unsigned int notfound) |
int | solvable_lookup_void (Solvable *s, Id keyname) |
int | solvable_lookup_bool (Solvable *s, Id keyname) |
const unsigned char * | solvable_lookup_bin_checksum (Solvable *s, Id keyname, Id *typep) |
const char * | solvable_lookup_checksum (Solvable *s, Id keyname, Id *typep) |
static const char * | evrid2vrstr (Pool *pool, Id evrid) |
char * | solvable_get_location (Solvable *s, unsigned int *medianrp) |
static Id | dep2name (Pool *pool, Id dep) |
static int | providedbyinstalled (Pool *pool, Map *installed, Id dep) |
int | solvable_trivial_installable_map (Solvable *s, Map *installedmap, Map *conflictsmap) |
int | solvable_trivial_installable_queue (Solvable *s, Queue *installed) |
int | solvable_trivial_installable_repo (Solvable *s, Repo *installed) |
void | pool_create_state_maps (Pool *pool, Queue *installed, Map *installedmap, Map *conflictsmap) |
int | solvable_identical (Solvable *s1, Solvable *s2) |
Id | solvable_selfprovidedep (Solvable *s) |
Definition at line 26 of file solvable.c.
References _Solvable::arch, _Solvable::evr, id2str(), _Solvable::name, and pool_alloctmpspace().
Referenced by pool_solvid2str(), solvable2str(), and solvid2str().
Definition at line 39 of file solvable.c.
References _Repo::pool, _Solvable::repo, repo_lookup_id(), and _Pool::solvables.
Referenced by pool_lookup_id().
Definition at line 47 of file solvable.c.
References _Repo::pool, queue_empty(), _Solvable::repo, repo_lookup_idarray(), and _Pool::solvables.
Referenced by addsolvableedges().
Definition at line 58 of file solvable.c.
References _Repo::pool, _Solvable::repo, repo_lookup_str(), and _Pool::solvables.
Referenced by pool_lookup_str(), solvable_get_location(), solvable_lookup_str_base(), solvable_lookup_str_lang(), and solvable_lookup_str_poollang().
static const char* solvable_lookup_str_base | ( | Solvable * | s, | |
Id | keyname, | |||
Id | basekeyname, | |||
int | usebase | |||
) | [static] |
Definition at line 66 of file solvable.c.
References FOR_PROVIDES, _Solvable::name, _Repo::pool, _Solvable::repo, solvable_lookup_str(), _Pool::solvables, _Solvable::vendor, and _Pool::whatprovides.
Referenced by solvable_lookup_str_lang(), and solvable_lookup_str_poollang().
Definition at line 109 of file solvable.c.
References _Pool::languagecache, _Pool::languagecacheother, _Pool::languages, _Pool::nlanguages, _Repo::pool, pool_id2langid(), _Solvable::repo, sat_calloc(), sat_realloc2(), solvable_lookup_str(), and solvable_lookup_str_base().
Definition at line 155 of file solvable.c.
References _Repo::pool, pool_id2langid(), _Solvable::repo, solvable_lookup_str(), and solvable_lookup_str_base().
Definition at line 169 of file solvable.c.
References _Repo::pool, _Solvable::repo, repo_lookup_num(), and _Pool::solvables.
Referenced by pool_calc_installsizechange(), pool_lookup_num(), solvable_get_location(), solvable_identical(), and transaction_order().
Definition at line 177 of file solvable.c.
References _Repo::pool, _Solvable::repo, repo_lookup_void(), and _Pool::solvables.
Referenced by pool_lookup_void(), and solvable_get_location().
Definition at line 185 of file solvable.c.
References _Repo::pool, _Solvable::repo, repo_lookup_num(), repo_lookup_type(), and _Pool::solvables.
Definition at line 196 of file solvable.c.
References _Repo::pool, _Solvable::repo, repo_lookup_bin_checksum(), and _Pool::solvables.
Referenced by pool_lookup_bin_checksum(), and solvable_lookup_checksum().
Definition at line 209 of file solvable.c.
References _Repo::pool, pool_bin2hex(), _Solvable::repo, sat_chksum_len(), and solvable_lookup_bin_checksum().
Referenced by pool_lookup_checksum().
char* solvable_get_location | ( | Solvable * | s, | |
unsigned int * | medianrp | |||
) |
Definition at line 227 of file solvable.c.
References _Solvable::arch, _Solvable::evr, evrid2vrstr(), id2str(), _Solvable::name, _Repo::pool, pool_alloctmpspace(), _Solvable::repo, solvable_lookup_num(), solvable_lookup_str(), and solvable_lookup_void().
Definition at line 316 of file solvable.c.
References _Solvable::conflicts, dep2name(), FOR_PROVIDES, _Repo::idarraydata, ISRELDEP, MAPTST, _Solvable::name, _Pool::nsolvables, _Solvable::obsoletes, _Repo::pool, pool_whatprovides_ptr(), providedbyinstalled(), _Solvable::repo, _Solvable::requires, and _Pool::solvables.
Referenced by solvable_trivial_installable_queue(), and solvable_trivial_installable_repo().
Definition at line 410 of file solvable.c.
References _Queue::count, _Queue::elements, map_free(), map_init(), MAPSET, _Pool::nsolvables, _Repo::pool, _Solvable::repo, and solvable_trivial_installable_map().
Definition at line 436 of file solvable.c.
References FOR_REPO_SOLVABLES, map_free(), map_init(), MAPSET, _Pool::nsolvables, _Repo::pool, _Solvable::repo, and solvable_trivial_installable_map().
void pool_create_state_maps | ( | Pool * | pool, | |
Queue * | installed, | |||
Map * | installedmap, | |||
Map * | conflictsmap | |||
) |
Definition at line 464 of file solvable.c.
References _Solvable::conflicts, _Queue::count, _Queue::elements, _Repo::idarraydata, map_init(), MAPSET, _Pool::nsolvables, pool_whatprovides_ptr(), _Solvable::repo, and _Pool::solvables.
Referenced by solver_create_state_maps().
Definition at line 499 of file solvable.c.
References _Solvable::arch, _Solvable::evr, _Repo::idarraydata, _Solvable::name, _Solvable::repo, _Solvable::requires, solvable_lookup_num(), and _Solvable::vendor.
Referenced by finddistupgradepackages(), prune_installed_dup_packages(), solver_addduprules(), and transaction_base_type().
Definition at line 542 of file solvable.c.
References _Solvable::evr, _Reldep::evr, _Reldep::flags, GETRELDEP, _Repo::idarraydata, ISRELDEP, _Reldep::name, _Solvable::name, _Repo::pool, _Solvable::provides, rel2id(), REL_EQ, and _Solvable::repo.
Referenced by solver_addrpmrulesforsolvable().