|
libzypp
17.25.7
|
Definition of vendor equivalence. More...
#include <VendorAttr.h>
Classes | |
| class | Impl |
| VendorAttr implementation. More... | |
Public Types | |
| typedef std::vector< std::string > | VendorList |
| Preferred type to pass equivalent vendor strings. More... | |
Public Member Functions | |
| VendorAttr () | |
| Ctor providing the default set. More... | |
| VendorAttr (const Pathname &initial_r) | |
| Ctor reading the initial_r definitions from a dir or file. More... | |
| ~VendorAttr () | |
| Dtor. More... | |
| bool | addVendorDirectory (const Pathname &dirname_r) |
| Adding new equivalent vendors described in a directory. More... | |
| bool | addVendorFile (const Pathname &filename_r) |
| Adding new equivalent vendors described in a file. More... | |
| void | addVendorList (VendorList &&list_r) |
| Adding new equivalent vendor strings container. More... | |
| void | addVendorList (const VendorList &list_r) |
| template<class TContainer > | |
| void | addVendorList (const TContainer &container_r) |
| template<class TStr > | |
| void | addVendorList (const std::initializer_list< TStr > &container_r) |
| 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 |
| unsigned | foreachVendorList (std::function< bool(VendorList)> fnc_r) const |
Call fnc_r for each equivalent vendor list (return false to break). More... | |
| void | _addVendorList (VendorList &&list_r) |
Static Public Member Functions | |
| static const VendorAttr & | instance () |
| (Pseudo)Singleton, mapped to the current Target::vendorAttr settings or to noTargetInstance. More... | |
| static VendorAttr & | noTargetInstance () |
| Singleton, settings used if no Target is active. More... | |
Public Attributes | |
| RWCOW_pointer< Impl > | _pimpl |
| Implementation class. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const VendorAttr &obj) |
Related Functions | |
(Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const VendorAttr &obj) |
| Stream output. More... | |
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.
By this vendor strings starting with "MyVendor" or "AlternateName" are considered to be equivalent. Packages from equivalent vendors may replace each other without being considered as a 'vendor change'.
Definition at line 60 of file VendorAttr.h.
| typedef std::vector<std::string> zypp::VendorAttr::VendorList |
Preferred type to pass equivalent vendor strings.
Definition at line 103 of file VendorAttr.h.
| zypp::VendorAttr::VendorAttr | ( | ) |
Ctor providing the default set.
Definition at line 225 of file VendorAttr.cc.
| zypp::VendorAttr::VendorAttr | ( | const Pathname & | initial_r | ) |
Ctor reading the initial_r definitions from a dir or file.
Definition at line 231 of file VendorAttr.cc.
| zypp::VendorAttr::~VendorAttr | ( | ) |
Dtor.
Definition at line 238 of file VendorAttr.cc.
|
static |
(Pseudo)Singleton, mapped to the current Target::vendorAttr settings or to noTargetInstance.
Definition at line 213 of file VendorAttr.cc.
|
static |
Singleton, settings used if no Target is active.
The instance is initialized with the settings found in the system below /. The active Targets settings can be changed via Target::vendorAttr.
Definition at line 219 of file VendorAttr.cc.
| bool zypp::VendorAttr::addVendorDirectory | ( | const Pathname & | dirname_r | ) |
Adding new equivalent vendors described in a directory.
Definition at line 241 of file VendorAttr.cc.
| bool zypp::VendorAttr::addVendorFile | ( | const Pathname & | filename_r | ) |
Adding new equivalent vendors described in a file.
Definition at line 258 of file VendorAttr.cc.
|
inline |
Adding new equivalent vendor strings container.
Definition at line 108 of file VendorAttr.h.
|
inline |
Definition at line 111 of file VendorAttr.h.
|
inline |
Definition at line 115 of file VendorAttr.h.
|
inline |
Definition at line 124 of file VendorAttr.h.
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 314 of file VendorAttr.cc.
Definition at line 311 of file VendorAttr.cc.
| bool zypp::VendorAttr::equivalent | ( | sat::Solvable | lVendor, |
| sat::Solvable | rVendor | ||
| ) | const |
Definition at line 317 of file VendorAttr.cc.
Definition at line 320 of file VendorAttr.cc.
| unsigned zypp::VendorAttr::foreachVendorList | ( | std::function< bool(VendorList)> | fnc_r | ) | const |
Call fnc_r for each equivalent vendor list (return false to break).
Definition at line 286 of file VendorAttr.cc.
| void zypp::VendorAttr::_addVendorList | ( | VendorList && | list_r | ) |
Definition at line 283 of file VendorAttr.cc.
|
friend |
Definition at line 325 of file VendorAttr.cc.
|
related |
Stream output.
Definition at line 325 of file VendorAttr.cc.
| RWCOW_pointer<Impl> zypp::VendorAttr::_pimpl |