|
libzypp 17.38.15
|
#include <zypp/sat/detail/PoolImpl.h>

Public Member Functions | |
| PoolImpl () | |
| Default ctor. | |
| ~PoolImpl () | |
| Dtor. | |
| CPool * | operator-> () |
| Pointer style access forwarded to sat-pool. | |
| const SerialNumber & | serial () const |
| Serial number changing whenever the content changes. | |
| const SerialNumber & | serialIDs () const |
| Serial number changing whenever resusePoolIDs==true was used. | |
| void | prepare () const |
| Update housekeeping data (e.g. | |
| bool | mapSnapshot (const Pathname &path_r, const std::string &cookie_r) |
| Experimental pool snapshot (see Pool::mapSnapshot). | |
| void | setSnapshotCandidate (const Pathname &path_r, const std::string &cookie_r, const std::vector< std::string > &aliases_r) |
| void | snapshotWriteIfNeeded () const |
| unsigned & | snapshotClaimingRef () const |
| Nesting level of Pool::ClaimingSnapshotRepos. | |
| bool | isSystemRepo (CRepo *repo_r) const |
| CRepo * | systemRepo () const |
| Pathname | rootDir () const |
| Get rootdir (for file conflicts check). | |
| void | rootDir (const Pathname &root_r) |
| Set rootdir (for file conflicts check). | |
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. | |
| void | _deleteRepo (CRepo *repo_r) |
| Delete repo repo_r from pool. | |
| int | _addSolv (CRepo *repo_r, FILE *file_r) |
| Adding solv file to a repo. | |
| int | _addHelix (CRepo *repo_r, FILE *file_r) |
| Adding helix file to a repo. | |
| int | _addTesttags (CRepo *repo_r, FILE *file_r) |
| Adding testtags file to a repo. | |
| detail::SolvableIdType | _addSolvables (CRepo *repo_r, unsigned count_r) |
| Adding Solvables to a repo. | |
| void | _postRepoAdd (CRepo *repo_r) |
| Helper postprocessing the repo after adding solv or helix files. | |
| bool | validSolvable (const CSolvable &slv_r) const |
a valid Solvable has a non NULL repo pointer. | |
| 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. | |
| sat::detail::IdType | parserpmrichdep (const char *capstr_r) |
| libsolv capability parser | |
| SolvableIdType | getFirstId () const |
| Get id of the first valid Solvable. | |
| SolvableIdType | getNextId (SolvableIdType id_r) const |
| Get id of the next valid Solvable. | |
| const RepoInfo & | repoInfo (RepoIdType id_r) |
| void | setRepoInfo (RepoIdType id_r, const RepoInfo &info_r) |
| Also adjust repo priority and subpriority accordingly. | |
| 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. | |
| unsigned | whatProvides (Capability cap_r) |
| Returns offset into the internal whatprovidesdata array. | |
Installed on behalf of a user request hint. | |
| StringQueue | autoInstalled () const |
| Get ident list of all autoinstalled solvables. | |
| void | setAutoInstalled (const StringQueue &autoInstalled_r) |
| Set ident list of all autoinstalled solvables. | |
| bool | isOnSystemByUser (IdString ident_r) const |
| bool | isOnSystemByAuto (IdString ident_r) const |
Solvables which should trigger the reboot-needed hint if installed/updated. | |
| void | setNeedrebootSpec (sat::SolvableSpec needrebootSpec_r) |
| Set new Solvable specs. | |
| bool | isNeedreboot (const Solvable &solv_r) const |
| Whether solv_r matches the spec. | |
Static Public Member Functions | |
| static const std::string & | systemRepoAlias () |
Reserved system repository alias @System . | |
Private Member Functions | |
| void | setDirty (const char *a1=0, const char *a2=0, const char *a3=0) |
| Invalidate housekeeping data (e.g. | |
| void | localeSetDirty (const char *a1=0, const char *a2=0, const char *a3=0) |
| Invalidate locale related housekeeping data. | |
| void | depSetDirty (const char *a1=0, const char *a2=0, const char *a3=0) |
| Invalidate housekeeping data (e.g. | |
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.). | |
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. | |
| const LocaleSet & | getAddedRequestedLocales () const |
| Added since last initRequestedLocales. | |
| const LocaleSet & | getRemovedRequestedLocales () const |
| Removed since last initRequestedLocales. | |
| const LocaleSet & | getRequestedLocales () const |
| Current set of requested Locales. | |
| bool | isRequestedLocale (const Locale &locale_r) const |
| void | setRequestedLocales (const LocaleSet &locales_r) |
| User change (tracked). | |
| bool | addRequestedLocale (const Locale &locale_r) |
| User change (tracked). | |
| bool | eraseRequestedLocale (const Locale &locale_r) |
| User change (tracked). | |
| const LocaleSet & | getAvailableLocales () const |
| All Locales occurring in any repo. | |
| bool | isAvailableLocale (const Locale &locale_r) const |
| const TrackedLocaleIds & | trackedLocaleIds () const |
| Expanded _requestedLocalesTracker for solver. | |
Multiversion install. | |
| typedef SolvableSet | MultiversionList |
| const MultiversionList & | multiversionList () const |
| bool | isMultiversion (const Solvable &solv_r) const |
| void | multiversionSpecChanged () |
Blacklisted Solvables. | |
| CPool * | _pool |
| sat-pool. | |
| SerialNumber | _serial |
| Serial number - changes with each Pool content change. | |
| std::string | _snapshotCookie |
| Experimental pool snapshot (see Pool::mapSnapshot). | |
| Pathname | _snapshotPath |
| std::vector< std::string > | _snapshotAliases |
| std::set< RepoIdType > | _snapshotUnclaimed |
| Snapshot repos not (yet) requested via setRepoInfo; erased in prepare. | |
| bool | _snapshotFileProvides = false |
| Whether the pool still holds exactly what the snapshot restored, i.e. | |
| unsigned | _snapshotClaiming = 0 |
| >0 while a repo load may still claim snapshot repos, see prepare. | |
| SerialNumber | _serialIDs |
| Serial number of IDs - changes whenever resusePoolIDs==true - ResPool must also invalidate its PoolItems! | |
| SerialNumberWatcher | _watcher |
| Watch serial number. | |
| std::map< RepoIdType, RepoInfo > | _repoinfos |
| Additional RepoInfo. | |
| base::SetTracker< LocaleSet > | _requestedLocalesTracker |
| scoped_ptr< TrackedLocaleIds > | _trackedLocaleIdsPtr |
| scoped_ptr< LocaleSet > | _availableLocalesPtr |
| scoped_ptr< MultiversionList > | _multiversionListPtr |
| sat::StringQueue | _autoinstalled |
| sat::SolvableSpec | _needrebootSpec |
| Solvables which should trigger the reboot-needed hint if installed/updated. | |
| sat::SolvableSpec | _retractedSpec |
| Blacklisted specs: | |
| sat::SolvableSpec | _ptfMasterSpec |
| sat::SolvableSpec | _ptfPackageSpec |
| scoped_ptr< std::set< std::string > > | _requiredFilesystemsPtr |
| filesystems mentioned in /etc/sysconfig/storage | |
| bool | isRetracted (const Solvable &solv_r) const |
| bool | isPtfMaster (const Solvable &solv_r) const |
| bool | isPtfPackage (const Solvable &solv_r) const |
| const std::set< std::string > & | requiredFilesystems () const |
| accessor for etc/sysconfig/storage reading file on demand | |
| void | multiversionListInit () const |
Definition at line 59 of file PoolImpl.h.
Definition at line 306 of file PoolImpl.h.
Definition at line 315 of file PoolImpl.h.
| zypp::sat::detail::PoolImpl::PoolImpl | ( | ) |
Default ctor.
Definition at line 192 of file PoolImpl.cc.
| zypp::sat::detail::PoolImpl::~PoolImpl | ( | ) |
Dtor.
Definition at line 241 of file PoolImpl.cc.
|
inline |
Pointer style access forwarded to sat-pool.
Definition at line 69 of file PoolImpl.h.
|
inline |
Serial number changing whenever the content changes.
Definition at line 74 of file PoolImpl.h.
|
inline |
Serial number changing whenever resusePoolIDs==true was used.
ResPool must also invalidate its PoolItems!
Definition at line 78 of file PoolImpl.h.
| void zypp::sat::detail::PoolImpl::prepare | ( | ) | const |
Update housekeeping data (e.g.
whatprovides).
Definition at line 398 of file PoolImpl.cc.
| bool zypp::sat::detail::PoolImpl::mapSnapshot | ( | const Pathname & | path_r, |
| const std::string & | cookie_r ) |
Experimental pool snapshot (see Pool::mapSnapshot).
Definition at line 297 of file PoolImpl.cc.
|
inline |
Definition at line 88 of file PoolImpl.h.
| void zypp::sat::detail::PoolImpl::snapshotWriteIfNeeded | ( | ) | const |
Definition at line 371 of file PoolImpl.cc.
|
inline |
Nesting level of Pool::ClaimingSnapshotRepos.
Definition at line 92 of file PoolImpl.h.
|
private |
Invalidate housekeeping data (e.g.
whatprovides) if the pools content changed.
Definition at line 247 of file PoolImpl.cc.
|
private |
Invalidate locale related housekeeping data.
Definition at line 274 of file PoolImpl.cc.
|
private |
Invalidate housekeeping data (e.g.
whatprovides) if dependencies changed.
Definition at line 286 of file PoolImpl.cc.
|
staticprivate |
Callback to resolve namespace dependencies (language, modalias, filesystem, etc.).
Definition at line 145 of file PoolImpl.cc.
|
static |
Reserved system repository alias @System .
Definition at line 108 of file PoolImpl.cc.
Definition at line 117 of file PoolImpl.h.
|
inline |
Definition at line 120 of file PoolImpl.h.
|
inline |
Get rootdir (for file conflicts check).
Definition at line 124 of file PoolImpl.h.
Set rootdir (for file conflicts check).
Definition at line 131 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 480 of file PoolImpl.cc.
Delete repo repo_r from pool.
Definition at line 489 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 506 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 515 of file PoolImpl.cc.
| int zypp::sat::detail::PoolImpl::_addTesttags | ( | CRepo * | repo_r, |
| FILE * | file_r ) |
Adding testtags file to a repo.
Except for isSystemRepo_r, solvables of incompatible architecture are filtered out.
Definition at line 524 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 579 of file PoolImpl.cc.
Helper postprocessing the repo after adding solv or helix files.
Definition at line 533 of file PoolImpl.cc.
a valid Solvable has a non NULL repo pointer.
Definition at line 178 of file PoolImpl.h.
|
inline |
Definition at line 181 of file PoolImpl.h.
Definition at line 184 of file PoolImpl.h.
|
inline |
Definition at line 188 of file PoolImpl.h.
|
inline |
Definition at line 192 of file PoolImpl.h.
|
inline |
Return pointer to the sat-solvable or NULL if it is not valid.
Definition at line 198 of file PoolImpl.h.
|
inline |
libsolv capability parser
Definition at line 207 of file PoolImpl.h.
|
inline |
Get id of the first valid Solvable.
This is the next valid after the system solvable.
Definition at line 214 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 222 of file PoolImpl.h.
|
inline |
Definition at line 235 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 586 of file PoolImpl.cc.
|
inline |
Definition at line 240 of file PoolImpl.h.
|
inline |
Returns the id stored at offset_r in the internal whatprovidesdata array.
Definition at line 248 of file PoolImpl.h.
|
inline |
Returns offset into the internal whatprovidesdata array.
Use whatProvidesData to get the stored Id.
Definition at line 254 of file PoolImpl.h.
Definition at line 619 of file PoolImpl.cc.
Start tracking changes based on this locales_r.
Usually called on TargetInit.
Definition at line 644 of file PoolImpl.cc.
|
inline |
Added since last initRequestedLocales.
Definition at line 275 of file PoolImpl.h.
|
inline |
Removed since last initRequestedLocales.
Definition at line 279 of file PoolImpl.h.
|
inline |
Current set of requested Locales.
Definition at line 283 of file PoolImpl.h.
Definition at line 286 of file PoolImpl.h.
User change (tracked).
Definition at line 653 of file PoolImpl.cc.
User change (tracked).
Definition at line 662 of file PoolImpl.cc.
User change (tracked).
Definition at line 673 of file PoolImpl.cc.
| const LocaleSet & zypp::sat::detail::PoolImpl::getAvailableLocales | ( | ) | const |
All Locales occurring in any repo.
Definition at line 754 of file PoolImpl.cc.
Definition at line 299 of file PoolImpl.h.
| const PoolImpl::TrackedLocaleIds & zypp::sat::detail::PoolImpl::trackedLocaleIds | ( | ) | const |
Expanded _requestedLocalesTracker for solver.
Definition at line 685 of file PoolImpl.cc.
| const PoolImpl::MultiversionList & zypp::sat::detail::PoolImpl::multiversionList | ( | ) | const |
Definition at line 800 of file PoolImpl.cc.
Definition at line 807 of file PoolImpl.cc.
| void zypp::sat::detail::PoolImpl::multiversionSpecChanged | ( | ) |
Definition at line 797 of file PoolImpl.cc.
|
inline |
Get ident list of all autoinstalled solvables.
Definition at line 328 of file PoolImpl.h.
|
inline |
Set ident list of all autoinstalled solvables.
Definition at line 332 of file PoolImpl.h.
Definition at line 335 of file PoolImpl.h.
Definition at line 338 of file PoolImpl.h.
|
inline |
Set new Solvable specs.
Definition at line 346 of file PoolImpl.h.
Whether solv_r matches the spec.
Definition at line 353 of file PoolImpl.h.
Definition at line 360 of file PoolImpl.h.
Definition at line 362 of file PoolImpl.h.
Definition at line 364 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 812 of file PoolImpl.cc.
|
private |
Definition at line 774 of file PoolImpl.cc.
|
private |
sat-pool.
Definition at line 374 of file PoolImpl.h.
|
private |
Serial number - changes with each Pool content change.
Definition at line 376 of file PoolImpl.h.
|
mutableprivate |
Experimental pool snapshot (see Pool::mapSnapshot).
Definition at line 378 of file PoolImpl.h.
|
mutableprivate |
Definition at line 379 of file PoolImpl.h.
|
mutableprivate |
Definition at line 380 of file PoolImpl.h.
|
mutableprivate |
Snapshot repos not (yet) requested via setRepoInfo; erased in prepare.
Definition at line 382 of file PoolImpl.h.
|
mutableprivate |
Whether the pool still holds exactly what the snapshot restored, i.e.
its stored file provides are complete.
Definition at line 385 of file PoolImpl.h.
|
mutableprivate |
>0 while a repo load may still claim snapshot repos, see prepare.
Definition at line 387 of file PoolImpl.h.
|
private |
Serial number of IDs - changes whenever resusePoolIDs==true - ResPool must also invalidate its PoolItems!
Definition at line 389 of file PoolImpl.h.
|
private |
Watch serial number.
Definition at line 391 of file PoolImpl.h.
|
private |
Additional RepoInfo.
Definition at line 395 of file PoolImpl.h.
|
private |
Definition at line 399 of file PoolImpl.h.
|
mutableprivate |
Definition at line 400 of file PoolImpl.h.
|
mutableprivate |
Definition at line 402 of file PoolImpl.h.
|
mutableprivate |
Definition at line 406 of file PoolImpl.h.
|
private |
Definition at line 409 of file PoolImpl.h.
|
private |
Solvables which should trigger the reboot-needed hint if installed/updated.
Definition at line 412 of file PoolImpl.h.
|
private |
Blacklisted specs:
Definition at line 415 of file PoolImpl.h.
|
private |
Definition at line 416 of file PoolImpl.h.
|
private |
Definition at line 417 of file PoolImpl.h.
|
mutableprivate |
filesystems mentioned in /etc/sysconfig/storage
Definition at line 420 of file PoolImpl.h.