40 return *
static_cast<Pool *
>(
repo->pool->appdata );
46 return *
static_cast<const Pool *
>(
repo->pool->appdata );
60#define NO_REPOSITORY_RETURN( VAL ) \
61 detail::CRepo * _repo( get() ); \
62 if ( ! _repo ) return VAL
64#define NO_REPOSITORY_THROW( VAL ) \
65 detail::CRepo * _repo( get() ); \
66 if ( ! _repo ) ZYPP_THROW( VAL )
85 return _repo->priority;
91 return _repo->subpriority;
114 if ( it.asString() == id_r )
162 return !_repo->nsolvables;
168 return _repo->nsolvables;
203 for(
auto it = iterable.begin(); it != iterable.end(); ++it )
207 if ( ++it != iterable.end() )
226 if (
pool()._addSolv( _repo, file ) != 0 )
238 std::string command( file_r.
extension() ==
".gz" ?
"zcat " :
"cat " );
250 if (
pool()._addHelix( _repo, file ) != 0 )
262 std::string command( file_r.
extension() ==
".gz" ?
"zcat " :
"cat " );
274 if (
pool()._addTesttags( _repo, file ) != 0 )
297 }
while (
base() < satpool->repos+satpool->nrepos && !*
base() );
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
#define NO_REPOSITORY_THROW(VAL)
#define NO_REPOSITORY_RETURN(VAL)
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
void resetDispose()
Set no dispose function.
Store and operate on date (time_t).
static Date now()
Return the current time.
Base class for Exception.
Repository nextInPool() const
Return next Repository in Pool (or noRepository).
int satInternalSubPriority() const
static const Repository noRepository
Represents no Repository.
void addHelix(const Pathname &file_r)
Load Solvables from a helix-file.
sat::detail::CRepo * get() const
Expert backdoor.
bool solvablesEmpty() const
Whether Repository contains solvables.
Date suggestedExpirationTimestamp() const
Suggested expiration timestamp.
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
int satInternalPriority() const
libsolv internal priorities.
sat::Solvable::IdType addSolvables(unsigned count_r)
Add count_r new empty Solvable to this Repository.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
void addTesttags(const Pathname &file_r)
Load Solvables from a libsolv testtags-file.
ContentIdentifier contentIdentifier() const
Unique string identifying a repositories content.
bool maybeOutdated() const
The suggested expiration date of this repository already passed.
std::string alias() const
Short unique string to identify a repo.
bool hasContentIdentifier(const ContentIdentifier &id_r) const
Whether id_r matches this repos content identifier.
size_type solvablesSize() const
Number of solvables in Repository.
void addSolv(const Pathname &file_r)
Load Solvables from a solv-file.
ContentRevision contentRevision() const
Timestamp or arbitrary user supplied string.
Date generatedTimestamp() const
Timestamp when this repository was generated.
static const std::string & systemRepoAlias()
Reserved system repository alias @System .
void eraseFromPool()
Remove this Repository from its Pool.
bool isSystemRepo() const
Return whether this is the system repository.
const char * c_str() const
String representation.
const std::string & asString() const
String representation.
std::string extension() const
Return all of the characters in name after and including the last dot in the last element of name.
unsigned asUnsigned() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::string asString() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
iterator end() const
Iterator behind the end of query results.
iterator begin() const
Iterator to the begin of query results.
bool empty() const
Whether the query is empty.
Lightweight repository attribute value lookup.
Orchestrator for a libsolv pool instance.
void _deleteRepo(detail::CRepo *repo_r)
Delete repo repo_r from pool.
bool isSystemRepo(detail::CRepo *repo_r) const
RepositoryIterable repos() const
Iteratable to the repositories.
static const std::string & systemRepoAlias()
Reserved system repository alias @System .
detail::SolvableIdType _addSolvables(detail::CRepo *repo_r, unsigned count_r)
Adding Solvables to a repo.
Repository()
Default ctor creates noRepository.
bool isSystemRepo() const
Return whether this is the system repository.
static const Repository noRepository
Represents no Repository.
zypp::Date generatedTimestamp() const
Timestamp when this repository was generated.
boost::filter_iterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
std::string ContentRevision
detail::CRepo * get() const
Expert backdoor.
std::string ContentIdentifier
zypp::Date suggestedExpirationTimestamp() const
Suggested expiration timestamp.
static const SolvAttr repositoryRepoid
static const SolvAttr repositoryRevision
static const SolvAttr repositoryTimestamp
static const SolvAttr repositoryExpire
detail::SolvableIdType IdType
Iterate over valid Solvables in the pool.
CLASS NAME : detail::DIWrap.
zypp::sat::detail::CPool CPool
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
zypp::sat::detail::CRepo CRepo
This file contains private API, this might break at any time between releases.
Always-on precondition checking for NG code.
#define ZYPP_PRECONDITION(EXPR,...)
Always-on precondition check — fires in debug AND release builds.
Functor filtering Solvable by Repository.