11 #include <solv/knownid.h> 39 Impl( std::list<Repository> &&repos, std::string &&pkgname =
"" )
40 : repos(
std::move(repos)), pkgname(
std::move(pkgname))
47 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
50 {
return new Impl( *
this ); }
57 return str <<
"DeltaCandidates::Impl";
66 DeltaCandidates::DeltaCandidates()
73 : _pimpl( new
Impl(
std::move(repos),
std::move(pkgname)) )
81 std::list<DeltaRpm> candidates;
83 DBG <<
"package: " <<
package << endl;
89 if (
_pimpl->pkgname.empty()
95 || ( package->name() == delta.
name()
96 && package->edition() == delta.
edition()
97 && package->arch() == delta.
arch() ) )
99 DBG <<
"got delta candidate: " << delta << endl;
100 candidates.push_back( delta );
Candidate delta and patches for a package.
const Edition & edition() const
TraitsType::constPtrType constPtr
Impl * clone() const
clone for RWCOW_pointer
friend std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
static const SolvAttr repositoryDeltaInfo
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
String related utilities and Regular expression matching.
Impl(std::list< Repository > &&repos, std::string &&pkgname="")
std::list< packagedelta::DeltaRpm > deltaRpms(const Package::constPtr &package) const
std::ostream & operator<<(std::ostream &str, const DeltaCandidates::Impl &obj)
iterator end() const
Iterator behind the end of query results.
Lightweight repository attribute value lookup.
DeltaCandidates implementation.
std::list< Repository > repos
const Arch & arch() const
const std::string & name() const
Easy-to use interface to the ZYPP dependency resolver.
iterator begin() const
Iterator to the begin of query results.