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 );
RepositoryIterable repos() const
Iteratable to the repositories.
std::string alias() const
Short unique string to identify a repo.
ContentIdentifier contentIdentifier() const
Unique string identifying a repositories content.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
Repository nextInPool() const
Return next Repository in Pool (or noRepository).
Lightweight repository attribute value lookup.
bool solvablesEmpty() const
Hint whether the Repo may provide updates for a product.
#define NO_REPOSITORY_RETURN(VAL)
A simple forward iterator that filters a base range according to a predicate.
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
bool isSystemRepo(detail::CRepo *repo_r) const
const char * c_str() const
String representation.
Orchestrator for a libsolv pool instance.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
void addSolv(const zypp::Pathname &file_r)
Load Solvables from a solv-file.
std::string ContentRevision
sat::detail::CRepo ** _base
zypp::sat::detail::CPool CPool
void addHelix(const zypp::Pathname &file_r)
Load Solvables from a helix-file.
static const std::string & systemRepoAlias()
Reserved system repository alias .
detail::SolvableIdType _addSolvables(detail::CRepo *repo_r, unsigned count_r)
Adding Solvables to a repo.
bool empty() const
Whether the query is empty.
std::string asString() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Store and operate on date (time_t).
int satInternalPriority() const
libsolv internal priorities.
Iterate over valid Solvables in the pool.
const std::string & asString() const
String representation.
detail::CRepo * get() const
Expert backdoor.
#define NO_REPOSITORY_THROW(VAL)
static const Repository noRepository
Represents no Repository.
void addTesttags(const zypp::Pathname &file_r)
Load Solvables from a libsolv testtags-file.
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
iterator begin() const
Iterator to the begin of query results.
void resetDispose()
Set no dispose function.
void eraseFromPool()
Query class for Repository related products.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
zypp::sat::detail::CRepo CRepo
ContentRevision contentRevision() const
Label to display for this repo.
zypp::Date suggestedExpirationTimestamp() const
Suggested expiration timestamp.
unsigned asUnsigned() const
Base class for Exception.
FilterIterator< Pred, Base > make_filter_iterator(Pred p, Base it, Base end)
Helper function to deduce types and construct a FilterIterator.
int satInternalSubPriority() const
static Date now()
Return the current time.
detail::SolvableIdType IdType
zypp::Date generatedTimestamp() const
Timestamp when this repository was generated.
size_type solvablesSize() const
Number of solvables in Repository.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
#define ZYPP_PRECONDITION(EXPR,...)
Always-on precondition check — fires in debug AND release builds.
sat::Solvable::IdType addSolvables(unsigned count_r)
Add count_r new empty Solvable to this Repository.
iterator end() const
Iterator behind the end of query results.
bool maybeOutdated() const
repository keywords (tags)
void _deleteRepo(detail::CRepo *repo_r)
Delete repo repo_r from pool.
std::string ContentIdentifier
bool isSystemRepo() const
Return whether this is the system repository.
static const std::string & systemRepoAlias()
Reserved system repository alias .
bool hasContentIdentifier(const ContentIdentifier &id_r) const
Whether id_r matches this repos content identifier.
Always-on precondition checking for NG code.
Functor filtering Solvable by Repository.
std::string extension() const
Return all of the characters in name after and including the last dot in the last element of name...