11 #include <solv/knownid.h>
22 using namespace zypp::packagedelta;
38 Impl(
const std::list<Repository> &
repos,
const std::string & pkgname =
"" )
39 : repos(repos), pkgname(pkgname)
46 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
49 {
return new Impl( *
this ); }
56 return str <<
"DeltaCandidates::Impl";
65 DeltaCandidates::DeltaCandidates()
71 const std::string & pkgname)
72 : _pimpl( new
Impl(repos, pkgname) )
80 std::list<DeltaRpm> candidates;
82 DBG <<
"package: " <<
package << endl;
88 if (
_pimpl->pkgname.empty()
94 || ( package->name() == delta.
name()
95 && package->edition() == delta.
edition()
96 && package->arch() == delta.
arch() ) )
98 DBG <<
"got delta candidate: " << delta << endl;
99 candidates.push_back( delta );
109 return str << *obj.
_pimpl;
Candidate delta and patches for a package.
std::list< packagedelta::DeltaRpm > deltaRpms(const Package::constPtr &package) const
friend std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
static const SolvAttr repositoryDeltaInfo
Impl * clone() const
clone for RWCOW_pointer
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
const Arch & arch() const
Impl(const std::list< Repository > &repos, const std::string &pkgname="")
std::ostream & operator<<(std::ostream &str, const DeltaCandidates::Impl &obj)
iterator end() const
Iterator behind the end of query results.
const Edition & edition() const
Lightweight repository attribute value lookup.
DeltaCandidates implementation.
std::list< Repository > repos
const std::string & name() const
TraitsType::constPtrType constPtr
iterator begin() const
Iterator to the begin of query results.