41 return *
static_cast<Pool *
>( repo->pool->appdata );
47 return *
static_cast<const Pool *
>( repo->pool->appdata );
61 #define NO_REPOSITORY_RETURN( VAL ) \ 62 detail::CRepo * _repo( get() ); \ 63 if ( ! _repo ) return VAL 65 #define NO_REPOSITORY_THROW( VAL ) \ 66 detail::CRepo * _repo( get() ); \ 67 if ( ! _repo ) ZYPP_THROW( VAL ) 86 return _repo->priority;
92 return _repo->subpriority;
123 return( q.
empty() ? 0 : (*q.
begin()).asUnsigned() );
161 return !_repo->nsolvables;
167 return _repo->nsolvables;
202 for(
auto it = iterable.begin(); it != iterable.end(); ++it )
206 if ( ++it != iterable.end() )
225 if (
pool()._addSolv( _repo, file ) != 0 )
237 std::string command( file_r.
extension() ==
".gz" ?
"zcat " :
"cat " );
249 if (
pool()._addHelix( _repo, file ) != 0 )
261 std::string command( file_r.
extension() ==
".gz" ?
"zcat " :
"cat " );
273 if (
pool()._addTesttags( _repo, file ) != 0 )
296 }
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.
std::string asString(const Patch::Category &obj)
relates: Patch::Category string representation.
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.
Value proxy returned by LookupAttr::iterator::operator*().
Orchestrator for a libsolv pool instance.
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.
Store and operate on date (time_t).
int satInternalPriority() const
libsolv internal priorities.
std::string asString() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
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.
Namespace routing for C++20 ranges and C++23 ranges::to<T>() backport.
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.
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.
bool any_of(const Container &c, Fnc &&cb)
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.
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...