#include <Target.h>
|
std::ostream & | dumpOn (std::ostream &str) const |
| Stream output. More...
|
|
|
virtual void | ref_to (unsigned) const |
| Trigger derived classes after refCount was increased. More...
|
|
virtual void | unref_to (unsigned) const |
| Trigger derived classes after refCount was decreased. More...
|
|
Definition at line 49 of file Target.h.
zypp::Target::Target |
( |
const Pathname & |
root = "/" , |
|
|
bool |
doRebuild_r = false |
|
) |
| |
|
explicit |
Ctor.
If doRebuild_r
is true
, an already existing database is rebuilt (rpm –rebuilddb ).
Definition at line 32 of file Target.cc.
zypp::Target::Target |
( |
const Impl_Ptr & |
impl_r | ) |
|
|
explicit |
void zypp::Target::buildCache |
( |
| ) |
|
builds or refreshes the target cache
Definition at line 73 of file Target.cc.
void zypp::Target::cleanCache |
( |
| ) |
|
cleans the target cache (.solv files)
Definition at line 76 of file Target.cc.
void zypp::Target::load |
( |
| ) |
|
load resolvables into the pool
Definition at line 79 of file Target.cc.
void zypp::Target::reload |
( |
| ) |
|
void zypp::Target::unload |
( |
| ) |
|
unload target resolvables from the pool
Definition at line 85 of file Target.cc.
Target_Ptr zypp::Target::nullimpl |
( |
| ) |
|
|
static |
Null implementation.
Definition at line 51 of file Target.cc.
Refference to the RPM database.
Definition at line 88 of file Target.cc.
bool zypp::Target::providesFile |
( |
const std::string & |
name_str, |
|
|
const std::string & |
path_str |
|
) |
| const |
If the package is installed and provides the file Needed to evaluate split provides during Resolver::Upgrade()
Definition at line 94 of file Target.cc.
std::string zypp::Target::whoOwnsFile |
( |
const std::string & |
path_str | ) |
const |
Return name of package owning path_str or empty string if no installed package owns path_str.
Definition at line 97 of file Target.cc.
Pathname zypp::Target::root |
( |
| ) |
const |
Return the root set for this target.
Definition at line 91 of file Target.cc.
Pathname zypp::Target::assertRootPrefix |
( |
const Pathname & |
path_r | ) |
const |
|
inline |
Return the path prefixed by the target root, unless it already is prefixed.
Definition at line 100 of file Target.h.
Date zypp::Target::timestamp |
( |
| ) |
const |
return the last modification date of the target
Definition at line 103 of file Target.cc.
returns the target base installed product, also known as the distribution or platform.
returns 0 if there is no base installed product in the pool.
- Note
- this method requires the target to be loaded, otherwise it will return 0 as no product is found.
if you require some base product attributes when the target is not loaded into the pool, see targetDistribution , targetDistributionRelease and distributionVersion that obtain the data on demand from the installed product information.
Definition at line 106 of file Target.cc.
LocaleSet zypp::Target::requestedLocales |
( |
| ) |
const |
Languages to be supported by the system.
E.g. language specific packages to be installed.
Definition at line 109 of file Target.cc.
LocaleSet zypp::Target::requestedLocales |
( |
const Pathname & |
root_r | ) |
|
|
static |
std::string zypp::Target::targetDistribution |
( |
| ) |
const |
This is register.target
attribute of the installed base product.
Used for registration and Service refresh.
Definition at line 114 of file Target.cc.
std::string zypp::Target::targetDistribution |
( |
const Pathname & |
root_r | ) |
|
|
static |
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 116 of file Target.cc.
std::string zypp::Target::targetDistributionRelease |
( |
| ) |
const |
This is register.release
attribute of the installed base product.
Used for registration.
Definition at line 119 of file Target.cc.
std::string zypp::Target::targetDistributionRelease |
( |
const Pathname & |
root_r | ) |
|
|
static |
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 121 of file Target.cc.
This is shortName
and summary
attribute of the installed base product.
Used e.g. for the bootloader menu.
Definition at line 124 of file Target.cc.
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 126 of file Target.cc.
std::string zypp::Target::distributionVersion |
( |
| ) |
const |
std::string zypp::Target::distributionVersion |
( |
const Pathname & |
root_r | ) |
|
|
static |
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 131 of file Target.cc.
std::string zypp::Target::distributionFlavor |
( |
| ) |
const |
This is flavor
attribute of the installed base product but does not require the target to be loaded as it remembers the last used one.
It can be empty is the target has never been loaded, as the value is not present in the system but computer from a package provides
Definition at line 134 of file Target.cc.
std::string zypp::Target::distributionFlavor |
( |
const Pathname & |
root_r | ) |
|
|
static |
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 136 of file Target.cc.
std::string zypp::Target::anonymousUniqueId |
( |
| ) |
const |
anonymous unique id
This id is generated once and stays in the saved in the target. It is unique and is used only for statistics.
Definition at line 139 of file Target.cc.
std::string zypp::Target::anonymousUniqueId |
( |
const Pathname & |
root_r | ) |
|
|
static |
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 141 of file Target.cc.
std::ostream & zypp::Target::dumpOn |
( |
std::ostream & |
str | ) |
const |
|
privatevirtual |
Direct access to Impl.
Definition at line 213 of file Target.h.
std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const Target & |
obj |
|
) |
| |
|
friend |
std::ostream & operator<< |
( |
std::ostream & |
str, |
|
|
const Target & |
obj |
|
) |
| |
|
related |
Stream output.
Definition at line 223 of file Target.h.
Pointer to implementation.
Definition at line 216 of file Target.h.
Target_Ptr zypp::Target::_nullimpl |
|
staticprivate |
The documentation for this class was generated from the following files: