libzypp  16.22.5
zypp::VendorAttr Class Reference

Definition of vendor equivalence. More...

#include <VendorAttr.h>

Public Types

typedef std::vector< std::string > VendorList
 

Public Member Functions

bool addVendorDirectory (const Pathname &dirname) const
 Adding new equivalent vendors described in a directory. More...
 
bool addVendorFile (const Pathname &filename) const
 Adding new equivalent vendors described in a file. More...
 
template<class TIterator >
void addVendorList (TIterator begin, TIterator end) const
 Adding new equivalent vendor set from list. More...
 
bool equivalent (const Vendor &lVendor, const Vendor &rVendor) const
 Return whether two vendor strings should be treated as the same vendor. More...
 
bool equivalent (IdString lVendor, IdString rVendor) const
 
bool equivalent (sat::Solvable lVendor, sat::Solvable rVendor) const
 
bool equivalent (const PoolItem &lVendor, const PoolItem &rVendor) const
 

Static Public Member Functions

static const VendorAttrinstance ()
 Singleton. More...
 

Private Member Functions

 VendorAttr ()
 
void _addVendorList (VendorList &) const
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const VendorAttr &obj)
 

Detailed Description

Definition of vendor equivalence.

Packages with equivalent vendor strings may replace themselves without creating a solver error.

Per default vendor strings starting with "suse" are treated as being equivalent. This may be tuned by providing customized vendor description files in /etc/zypp/vendors.d.

See Also
Solver - Vendor protection

Definition at line 43 of file VendorAttr.h.

Member Typedef Documentation

typedef std::vector<std::string> zypp::VendorAttr::VendorList

Definition at line 46 of file VendorAttr.h.

Constructor & Destructor Documentation

zypp::VendorAttr::VendorAttr ( )
private

Definition at line 127 of file VendorAttr.cc.

Member Function Documentation

const VendorAttr & zypp::VendorAttr::instance ( )
static

Singleton.

Definition at line 121 of file VendorAttr.cc.

bool zypp::VendorAttr::addVendorDirectory ( const Pathname &  dirname) const

Adding new equivalent vendors described in a directory.

Definition at line 236 of file VendorAttr.cc.

bool zypp::VendorAttr::addVendorFile ( const Pathname &  filename) const

Adding new equivalent vendors described in a file.

Definition at line 193 of file VendorAttr.cc.

template<class TIterator >
void zypp::VendorAttr::addVendorList ( TIterator  begin,
TIterator  end 
) const
inline

Adding new equivalent vendor set from list.

Definition at line 65 of file VendorAttr.h.

bool zypp::VendorAttr::equivalent ( const Vendor lVendor,
const Vendor rVendor 
) const

Return whether two vendor strings should be treated as the same vendor.

Usually the solver is allowed to automatically select a package of an equivalent vendor when updating. Replacing a package with one of a different vendor usually must be confirmed by the user.

Definition at line 264 of file VendorAttr.cc.

bool zypp::VendorAttr::equivalent ( IdString  lVendor,
IdString  rVendor 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 257 of file VendorAttr.cc.

bool zypp::VendorAttr::equivalent ( sat::Solvable  lVendor,
sat::Solvable  rVendor 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 268 of file VendorAttr.cc.

bool zypp::VendorAttr::equivalent ( const PoolItem lVendor,
const PoolItem rVendor 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 271 of file VendorAttr.cc.

void zypp::VendorAttr::_addVendorList ( VendorList vendorList_r) const
private

Definition at line 151 of file VendorAttr.cc.

Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const VendorAttr obj 
)
related

Stream output

Definition at line 276 of file VendorAttr.cc.


The documentation for this class was generated from the following files: