11#include <solv/knownid.h>
15#include <zypp/base/Logger.h>
46 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
49 {
return new Impl( *
this ); }
56 return str <<
"DeltaCandidates::Impl";
71 const std::string & pkgname)
80 std::list<DeltaRpm> candidates;
82 DBG <<
"package: " <<
package << endl;
83 for_( rit, _pimpl->repos.begin(), _pimpl->repos.end() )
88 if ( _pimpl->pkgname.empty()
89 || it.subFind(
sat::SolvAttr(DELTA_PACKAGE_NAME) ).asString() == _pimpl->pkgname )
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 );
TraitsType::constPtrType constPtr
const Edition & edition() const
const std::string & name() const
const Arch & arch() const
Candidate delta and patches for a package.
std::list< packagedelta::DeltaRpm > deltaRpms(const Package::constPtr &package) const
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
friend std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
iterator end() const
Iterator behind the end of query results.
iterator begin() const
Iterator to the begin of query results.
Lightweight repository attribute value lookup.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
DeltaCandidates implementation.
Impl(const std::list< Repository > &repos, const std::string &pkgname="")
std::list< Repository > repos
Impl * clone() const
clone for RWCOW_pointer
std::ostream & operator<<(std::ostream &str, const DeltaCandidates::Impl &obj)
Stream output.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.