libzypp
16.22.5
|
Functor replacing repository variables. More...
#include <RepoVariables.h>
Public Member Functions | |
std::string | operator() (const std::string &value_r) const |
std::string | operator() (std::string &&value_r) const |
Functor replacing repository variables.
Replaces the built-in '$arch', '$basearch' and '$releasever' ans also custom repo variables (
Additionally $releasever_major and $releasever_minor can be used to refer to $releasever major number (everything up to the 1st '
.' ) and minor number (everything after the 1st '
.' ).
ZYPP_REPO_RELEASEVER
. This might be handy for distribution upogrades like this: The same can be achieved by using zyppers –releasever global option: Definition at line 106 of file RepoVariables.h.
std::string zypp::repo::RepoVariablesStringReplacer::operator() | ( | const std::string & | value_r | ) | const |
Definition at line 540 of file RepoVariables.cc.
std::string zypp::repo::RepoVariablesStringReplacer::operator() | ( | std::string && | value_r | ) | 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 544 of file RepoVariables.cc.