libzypp
16.22.5
|
#include <PoolImpl.h>
Public Member Functions | |
PoolImpl () | |
Default ctor. More... | |
~PoolImpl () | |
Dtor. More... | |
CPool * | operator-> () |
Pointer style access forwarded to sat-pool. More... | |
const SerialNumber & | serial () const |
Serial number changing whenever the content changes. More... | |
const SerialNumber & | serialIDs () const |
Serial number changing whenever resusePoolIDs==true was used. More... | |
void | prepare () const |
Update housekeeping data (e.g. More... | |
bool | isSystemRepo (CRepo *repo_r) const |
CRepo * | systemRepo () const |
Pathname | rootDir () const |
Get rootdir (for file conflicts check) More... | |
void | rootDir (const Pathname &root_r) |
Set rootdir (for file conflicts check) More... | |
void | _postRepoAdd (CRepo *repo_r) |
Helper postprocessing the repo after adding solv or helix files. More... | |
bool | validSolvable (const CSolvable &slv_r) const |
a valid Solvable has a non NULL repo pointer. More... | |
bool | validSolvable (SolvableIdType id_r) const |
bool | validSolvable (const CSolvable *slv_r) const |
CPool * | getPool () const |
CRepo * | getRepo (RepoIdType id_r) const |
CSolvable * | getSolvable (SolvableIdType id_r) const |
Return pointer to the sat-solvable or NULL if it is not valid. More... | |
SolvableIdType | getFirstId () const |
Get id of the first valid Solvable. More... | |
SolvableIdType | getNextId (SolvableIdType id_r) const |
Get id of the next valid Solvable. More... | |
const RepoInfo & | repoInfo (RepoIdType id_r) |
void | setRepoInfo (RepoIdType id_r, const RepoInfo &info_r) |
Also adjust repo priority and subpriority accordingly. More... | |
void | eraseRepoInfo (RepoIdType id_r) |
const sat::detail::IdType | whatProvidesData (unsigned offset_r) |
Returns the id stored at offset_r in the internal whatprovidesdata array. More... | |
unsigned | whatProvides (Capability cap_r) |
Returns offset into the internal whatprovidesdata array. More... | |
const std::set< std::string > & | requiredFilesystems () const |
accessor for etc/sysconfig/storage reading file on demand More... | |
Actions invalidating housekeeping data. | |
All methods expect valid arguments being passed. | |
CRepo * | _createRepo (const std::string &name_r) |
Creating a new repo named name_r. More... | |
void | _deleteRepo (CRepo *repo_r) |
Delete repo repo_r from pool. More... | |
int | _addSolv (CRepo *repo_r, FILE *file_r) |
Adding solv file to a repo. More... | |
int | _addHelix (CRepo *repo_r, FILE *file_r) |
Adding helix file to a repo. More... | |
detail::SolvableIdType | _addSolvables (CRepo *repo_r, unsigned count_r) |
Adding Solvables to a repo. More... | |
Installed on behalf of a user request hint. | |
StringQueue | autoInstalled () const |
Get ident list of all autoinstalled solvables. More... | |
void | setAutoInstalled (const StringQueue &autoInstalled_r) |
Set ident list of all autoinstalled solvables. More... | |
bool | isOnSystemByUser (IdString ident_r) const |
bool | isOnSystemByAuto (IdString ident_r) const |
Blacklisted Solvables. | |
bool | isRetracted (const Solvable &solv_r) const |
bool | isPtfMaster (const Solvable &solv_r) const |
bool | isPtfPackage (const Solvable &solv_r) const |
Static Public Member Functions | |
static const std::string & | systemRepoAlias () |
Reserved system repository alias . More... | |
Private Member Functions | |
void | setDirty (const char *a1=0, const char *a2=0, const char *a3=0) |
Invalidate housekeeping data (e.g. More... | |
void | localeSetDirty (const char *a1=0, const char *a2=0, const char *a3=0) |
Invalidate locale related housekeeping data. More... | |
void | depSetDirty (const char *a1=0, const char *a2=0, const char *a3=0) |
Invalidate housekeeping data (e.g. More... | |
void | multiversionListInit () const |
Static Private Member Functions | |
static detail::IdType | nsCallback (CPool *, void *data, detail::IdType lhs, detail::IdType rhs) |
Callback to resolve namespace dependencies (language, modalias, filesystem, etc.). More... | |
Private Attributes | |
CPool * | _pool |
sat-pool. More... | |
SerialNumber | _serial |
Serial number - changes with each Pool content change. More... | |
SerialNumber | _serialIDs |
Serial number of IDs - changes whenever resusePoolIDs==true - ResPool must also invalidate it's PoolItems! More... | |
SerialNumberWatcher | _watcher |
Watch serial number. More... | |
std::map< RepoIdType, RepoInfo > | _repoinfos |
Additional RepoInfo. More... | |
base::SetTracker< LocaleSet > | _requestedLocalesTracker |
scoped_ptr< TrackedLocaleIds > | _trackedLocaleIdsPtr |
scoped_ptr< LocaleSet > | _availableLocalesPtr |
scoped_ptr< MultiversionList > | _multiversionListPtr |
sat::StringQueue | _autoinstalled |
sat::SolvableSpec | _retractedSpec |
Blacklisted specs: More... | |
sat::SolvableSpec | _ptfMasterSpec |
sat::SolvableSpec | _ptfPackageSpec |
scoped_ptr< std::set < std::string > > | _requiredFilesystemsPtr |
filesystems mentioned in /etc/sysconfig/storage More... | |
Requested locales. | |
The requested LocaleSets managed in _requestedLocalesTracker are unexpanded; i.e. they contain just the pure user selection. The resolver however uses expanded sets ('de_DE' will also include its fallback locales 'de', (en); here in the namespace: callback and in the Resolver itself). | |
typedef base::SetTracker < IdStringSet > | TrackedLocaleIds |
void | setTextLocale (const Locale &locale_r) |
void | initRequestedLocales (const LocaleSet &locales_r) |
Start tracking changes based on this locales_r. More... | |
const LocaleSet & | getAddedRequestedLocales () const |
Added since last initRequestedLocales. More... | |
const LocaleSet & | getRemovedRequestedLocales () const |
Removed since last initRequestedLocales. More... | |
const LocaleSet & | getRequestedLocales () const |
Current set of requested Locales. More... | |
bool | isRequestedLocale (const Locale &locale_r) const |
void | setRequestedLocales (const LocaleSet &locales_r) |
User change (tracked). More... | |
bool | addRequestedLocale (const Locale &locale_r) |
User change (tracked). More... | |
bool | eraseRequestedLocale (const Locale &locale_r) |
User change (tracked). More... | |
const LocaleSet & | getAvailableLocales () const |
All Locales occurring in any repo. More... | |
bool | isAvailableLocale (const Locale &locale_r) const |
const TrackedLocaleIds & | trackedLocaleIds () const |
Expanded _requestedLocalesTracker for solver. More... | |
Multiversion install. | |
typedef SolvableSet | MultiversionList |
const MultiversionList & | multiversionList () const |
bool | isMultiversion (const Solvable &solv_r) const |
void | multiversionSpecChanged () |
Definition at line 52 of file PoolImpl.h.
Definition at line 276 of file PoolImpl.h.
Definition at line 285 of file PoolImpl.h.
zypp::sat::detail::PoolImpl::PoolImpl | ( | ) |
Default ctor.
Definition at line 183 of file PoolImpl.cc.
zypp::sat::detail::PoolImpl::~PoolImpl | ( | ) |
Dtor.
Definition at line 228 of file PoolImpl.cc.
|
inline |
Pointer style access forwarded to sat-pool.
Definition at line 62 of file PoolImpl.h.
|
inline |
Serial number changing whenever the content changes.
Definition at line 67 of file PoolImpl.h.
|
inline |
Serial number changing whenever resusePoolIDs==true was used.
ResPool must also invalidate it's PoolItems!
Definition at line 71 of file PoolImpl.h.
void zypp::sat::detail::PoolImpl::prepare | ( | ) | const |
Update housekeeping data (e.g.
whatprovides).
Definition at line 284 of file PoolImpl.cc.
|
private |
Invalidate housekeeping data (e.g.
whatprovides) if the pools content changed.
Definition at line 235 of file PoolImpl.cc.
|
private |
Invalidate locale related housekeeping data.
Definition at line 261 of file PoolImpl.cc.
|
private |
Invalidate housekeeping data (e.g.
whatprovides) if dependencies changed.
Definition at line 273 of file PoolImpl.cc.
|
staticprivate |
Callback to resolve namespace dependencies (language, modalias, filesystem, etc.).
Definition at line 125 of file PoolImpl.cc.
|
static |
Reserved system repository alias .
Definition at line 94 of file PoolImpl.cc.
Definition at line 100 of file PoolImpl.h.
|
inline |
Definition at line 103 of file PoolImpl.h.
|
inline |
Get rootdir (for file conflicts check)
Definition at line 107 of file PoolImpl.h.
|
inline |
Set rootdir (for file conflicts check)
Definition at line 114 of file PoolImpl.h.
CRepo * zypp::sat::detail::PoolImpl::_createRepo | ( | const std::string & | name_r | ) |
Creating a new repo named name_r.
Definition at line 315 of file PoolImpl.cc.
void zypp::sat::detail::PoolImpl::_deleteRepo | ( | CRepo * | repo_r | ) |
Delete repo repo_r from pool.
Definition at line 324 of file PoolImpl.cc.
int zypp::sat::detail::PoolImpl::_addSolv | ( | CRepo * | repo_r, |
FILE * | file_r | ||
) |
Adding solv file to a repo.
Except for isSystemRepo_r
, solvables of incompatible architecture are filtered out.
Definition at line 340 of file PoolImpl.cc.
int zypp::sat::detail::PoolImpl::_addHelix | ( | CRepo * | repo_r, |
FILE * | file_r | ||
) |
Adding helix file to a repo.
Except for isSystemRepo_r
, solvables of incompatible architecture are filtered out.
Definition at line 349 of file PoolImpl.cc.
detail::SolvableIdType zypp::sat::detail::PoolImpl::_addSolvables | ( | CRepo * | repo_r, |
unsigned | count_r | ||
) |
Adding Solvables to a repo.
Definition at line 402 of file PoolImpl.cc.
void zypp::sat::detail::PoolImpl::_postRepoAdd | ( | CRepo * | repo_r | ) |
Helper postprocessing the repo after adding solv or helix files.
Definition at line 358 of file PoolImpl.cc.
a valid
Solvable has a non NULL repo pointer.
Definition at line 155 of file PoolImpl.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 158 of file PoolImpl.h.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 161 of file PoolImpl.h.
|
inline |
Definition at line 165 of file PoolImpl.h.
|
inline |
Definition at line 169 of file PoolImpl.h.
|
inline |
Return pointer to the sat-solvable or NULL if it is not valid.
Definition at line 175 of file PoolImpl.h.
|
inline |
Get id of the first valid Solvable.
This is the next valid after the system solvable.
Definition at line 186 of file PoolImpl.h.
|
inline |
Get id of the next valid Solvable.
This goes round robbin. At the end it returns noSolvableId. Passing noSolvableId it returns the 1st valid Solvable.
Definition at line 194 of file PoolImpl.h.
|
inline |
Definition at line 206 of file PoolImpl.h.
void zypp::sat::detail::PoolImpl::setRepoInfo | ( | RepoIdType | id_r, |
const RepoInfo & | info_r | ||
) |
Also adjust repo priority and subpriority accordingly.
Definition at line 408 of file PoolImpl.cc.
|
inline |
Definition at line 211 of file PoolImpl.h.
|
inline |
Returns the id stored at offset_r
in the internal whatprovidesdata array.
Definition at line 218 of file PoolImpl.h.
|
inline |
Returns offset into the internal whatprovidesdata array.
Use whatProvidesData to get the stored Id.
Definition at line 224 of file PoolImpl.h.
void zypp::sat::detail::PoolImpl::setTextLocale | ( | const Locale & | locale_r | ) |
Definition at line 440 of file PoolImpl.cc.
void zypp::sat::detail::PoolImpl::initRequestedLocales | ( | const LocaleSet & | locales_r | ) |
Start tracking changes based on this locales_r.
Usually called on TargetInit.
Definition at line 457 of file PoolImpl.cc.
|
inline |
Added since last initRequestedLocales.
Definition at line 245 of file PoolImpl.h.
|
inline |
Removed since last initRequestedLocales.
Definition at line 249 of file PoolImpl.h.
|
inline |
Current set of requested Locales.
Definition at line 253 of file PoolImpl.h.
Definition at line 256 of file PoolImpl.h.
void zypp::sat::detail::PoolImpl::setRequestedLocales | ( | const LocaleSet & | locales_r | ) |
User change (tracked).
Definition at line 466 of file PoolImpl.cc.
User change (tracked).
Definition at line 475 of file PoolImpl.cc.
User change (tracked).
Definition at line 486 of file PoolImpl.cc.
const LocaleSet & zypp::sat::detail::PoolImpl::getAvailableLocales | ( | ) | const |
All Locales occurring in any repo.
Definition at line 569 of file PoolImpl.cc.
Definition at line 269 of file PoolImpl.h.
const PoolImpl::TrackedLocaleIds & zypp::sat::detail::PoolImpl::trackedLocaleIds | ( | ) | const |
Expanded _requestedLocalesTracker for solver.
Definition at line 498 of file PoolImpl.cc.
const PoolImpl::MultiversionList & zypp::sat::detail::PoolImpl::multiversionList | ( | ) | const |
Definition at line 615 of file PoolImpl.cc.
Definition at line 622 of file PoolImpl.cc.
void zypp::sat::detail::PoolImpl::multiversionSpecChanged | ( | ) |
Definition at line 612 of file PoolImpl.cc.
|
inline |
Get ident list of all autoinstalled solvables.
Definition at line 298 of file PoolImpl.h.
|
inline |
Set ident list of all autoinstalled solvables.
Definition at line 302 of file PoolImpl.h.
Definition at line 305 of file PoolImpl.h.
Definition at line 308 of file PoolImpl.h.
Definition at line 315 of file PoolImpl.h.
Definition at line 317 of file PoolImpl.h.
Definition at line 319 of file PoolImpl.h.
const std::set< std::string > & zypp::sat::detail::PoolImpl::requiredFilesystems | ( | ) | const |
accessor for etc/sysconfig/storage reading file on demand
Definition at line 627 of file PoolImpl.cc.
|
private |
Definition at line 589 of file PoolImpl.cc.
|
private |
sat-pool.
Definition at line 329 of file PoolImpl.h.
|
private |
Serial number - changes with each Pool content change.
Definition at line 331 of file PoolImpl.h.
|
private |
Serial number of IDs - changes whenever resusePoolIDs==true - ResPool must also invalidate it's PoolItems!
Definition at line 333 of file PoolImpl.h.
|
private |
Watch serial number.
Definition at line 335 of file PoolImpl.h.
|
private |
Additional RepoInfo.
Definition at line 337 of file PoolImpl.h.
|
private |
Definition at line 340 of file PoolImpl.h.
|
mutableprivate |
Definition at line 341 of file PoolImpl.h.
|
mutableprivate |
Definition at line 343 of file PoolImpl.h.
|
mutableprivate |
Definition at line 347 of file PoolImpl.h.
|
private |
Definition at line 350 of file PoolImpl.h.
|
private |
Blacklisted specs:
Definition at line 353 of file PoolImpl.h.
|
private |
Definition at line 354 of file PoolImpl.h.
|
private |
Definition at line 355 of file PoolImpl.h.
|
mutableprivate |
filesystems mentioned in /etc/sysconfig/storage
Definition at line 358 of file PoolImpl.h.