#include <VendorAttr.h>
Public Member Functions | |
| bool | isKnown (const Vendor &vendor_r) const |
| Return whether it's a known vendor. | |
| bool | autoProtect (const Vendor &vendor_r) const |
| Return whether this vendors packages should be protected by default. | |
| bool | equivalent (const Vendor &lhs, const Vendor &rhs) const |
| Return whether two vendor strings shold be treated as the same vendor. | |
Static Public Member Functions | |
| static const VendorAttr & | instance () |
| Singleton. | |
| static void | enableAutoProtect () |
| Enable autoprotection of foreign vendor packages. | |
| static void | disableAutoProtect () |
| Disable autoprotection of foreign vendor packages. | |
Private Member Functions | |
| VendorAttr () | |
Definition at line 25 of file VendorAttr.h.
| zypp::VendorAttr::VendorAttr | ( | ) | [private] |
Definition at line 95 of file VendorAttr.cc.
References zypp::_trustedVendors, zypp::addTrustedVendor(), zypp::iostr::forEachLine(), and MIL.
| const VendorAttr & zypp::VendorAttr::instance | ( | ) | [static] |
Singleton.
Definition at line 89 of file VendorAttr.cc.
Referenced by zypp::PoolItem_Ref::Impl::autoprotect(), zypp::solver::detail::downgrade_allowed(), zypp::solver::detail::FindProviders::operator()(), zypp::solver::detail::NoInstallableProviders::operator()(), and zypp::solver::detail::RequireProcess::operator()().
| void zypp::VendorAttr::enableAutoProtect | ( | ) | [static] |
Enable autoprotection of foreign vendor packages.
This is the default.
Definition at line 131 of file VendorAttr.cc.
References MIL.
| void zypp::VendorAttr::disableAutoProtect | ( | ) | [static] |
Disable autoprotection of foreign vendor packages.
Autoprotection is on per defult.
Definition at line 137 of file VendorAttr.cc.
References MIL.
| bool zypp::VendorAttr::isKnown | ( | const Vendor & | vendor_r | ) | const |
Return whether it's a known vendor.
Definition at line 143 of file VendorAttr.cc.
References zypp::trusted().
| bool zypp::VendorAttr::autoProtect | ( | const Vendor & | vendor_r | ) | const |
Return whether this vendors packages should be protected by default.
Definition at line 147 of file VendorAttr.cc.
References zypp::ZConfig::instance(), and zypp::trusted().
Referenced by zypp::PoolItem_Ref::Impl::autoprotect().
Return whether two vendor strings shold 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 164 of file VendorAttr.cc.
References zypp::isSUSE().
Referenced by zypp::solver::detail::RequireProcess::operator()().
1.5.3