libzypp 17.31.23
|
Options and policies for ZYpp::commit. More...
#include <ZYppCommitPolicy.h>
Classes | |
class | Impl |
Public Member Functions | |
ZYppCommitPolicy () | |
ZYppCommitPolicy & | restrictToMedia (unsigned mediaNr_r) |
Restrict commit to media 1. | |
ZYppCommitPolicy & | allMedia () |
Process all media (default) | |
unsigned | restrictToMedia () const |
ZYppCommitPolicy & | dryRun (bool yesNo_r) |
Set dry run (default: false). | |
bool | dryRun () const |
ZYppCommitPolicy & | downloadMode (DownloadMode val_r) |
Commit download policy to use. | |
DownloadMode | downloadMode () const |
ZYppCommitPolicy & | rpmInstFlags (target::rpm::RpmInstFlags newFlags_r) |
The default target::rpm::RpmInstFlags. | |
ZYppCommitPolicy & | rpmNoSignature (bool yesNo_r) |
Use rpm option –nosignature (default: false) | |
ZYppCommitPolicy & | rpmExcludeDocs (bool yesNo_r) |
Use rpm option –excludedocs (default: false) | |
target::rpm::RpmInstFlags | rpmInstFlags () const |
bool | rpmNoSignature () const |
bool | rpmExcludeDocs () const |
ZYppCommitPolicy & | allowDowngrade (bool yesNo_r) |
Allow to replace a newer package with an older one (rollback to a older version). | |
bool | allowDowngrade () const |
ZYppCommitPolicy & | replaceFiles (bool yesNo_r) |
If enabled it allows installation of packages even if they replace files from other, already installed, packages. | |
bool | replaceFiles () const |
ZYppCommitPolicy & | syncPoolAfterCommit (bool yesNo_r) |
Kepp pool in sync with the Target databases after commit (default: true) | |
bool | syncPoolAfterCommit () const |
bool | singleTransModeEnabled () const |
Private Attributes | |
RWCOW_pointer< Impl > | _pimpl |
Pointer to data. | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const ZYppCommitPolicy &obj) |
Stream output. | |
Options and policies for ZYpp::commit.
Definition at line 33 of file ZYppCommitPolicy.h.
zypp::ZYppCommitPolicy::ZYppCommitPolicy | ( | ) |
Definition at line 106 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::restrictToMedia | ( | unsigned | mediaNr_r | ) |
Restrict commit to media 1.
Fake outstanding YCP fix: Honour restriction to media 1 at installation, but install all remaining packages if post-boot (called with mediaNr_r > 1
).
Definition at line 111 of file ZYppCommitPolicy.cc.
|
inline |
Process all media (default)
Definition at line 48 of file ZYppCommitPolicy.h.
unsigned zypp::ZYppCommitPolicy::restrictToMedia | ( | ) | const |
Definition at line 114 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::dryRun | ( | bool | yesNo_r | ) |
Set dry run (default: false).
Dry-run should not change anything on the system, unless the downloadMode is set to DownloadOnly. In that case packages are downloaded to the local cache.
Definition at line 118 of file ZYppCommitPolicy.cc.
bool zypp::ZYppCommitPolicy::dryRun | ( | ) | const |
Definition at line 121 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::downloadMode | ( | DownloadMode | val_r | ) |
Commit download policy to use.
(default: DownloadDefault)
Definition at line 124 of file ZYppCommitPolicy.cc.
DownloadMode zypp::ZYppCommitPolicy::downloadMode | ( | ) | const |
Definition at line 133 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::rpmInstFlags | ( | target::rpm::RpmInstFlags | newFlags_r | ) |
The default target::rpm::RpmInstFlags.
(default: none)
Definition at line 142 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::rpmNoSignature | ( | bool | yesNo_r | ) |
Use rpm option –nosignature (default: false)
Definition at line 145 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::rpmExcludeDocs | ( | bool | yesNo_r | ) |
Use rpm option –excludedocs (default: false)
Definition at line 148 of file ZYppCommitPolicy.cc.
target::rpm::RpmInstFlags zypp::ZYppCommitPolicy::rpmInstFlags | ( | ) | const |
Definition at line 151 of file ZYppCommitPolicy.cc.
bool zypp::ZYppCommitPolicy::rpmNoSignature | ( | ) | const |
Definition at line 154 of file ZYppCommitPolicy.cc.
bool zypp::ZYppCommitPolicy::rpmExcludeDocs | ( | ) | const |
Definition at line 157 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::allowDowngrade | ( | bool | yesNo_r | ) |
Allow to replace a newer package with an older one (rollback to a older version).
Definition at line 160 of file ZYppCommitPolicy.cc.
bool zypp::ZYppCommitPolicy::allowDowngrade | ( | ) | const |
Definition at line 163 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::replaceFiles | ( | bool | yesNo_r | ) |
If enabled it allows installation of packages even if they replace files from other, already installed, packages.
Definition at line 166 of file ZYppCommitPolicy.cc.
bool zypp::ZYppCommitPolicy::replaceFiles | ( | ) | const |
Definition at line 169 of file ZYppCommitPolicy.cc.
ZYppCommitPolicy & zypp::ZYppCommitPolicy::syncPoolAfterCommit | ( | bool | yesNo_r | ) |
Kepp pool in sync with the Target databases after commit (default: true)
Definition at line 172 of file ZYppCommitPolicy.cc.
bool zypp::ZYppCommitPolicy::syncPoolAfterCommit | ( | ) | const |
Definition at line 175 of file ZYppCommitPolicy.cc.
bool zypp::ZYppCommitPolicy::singleTransModeEnabled | ( | ) | const |
Definition at line 178 of file ZYppCommitPolicy.cc.
|
related |
Stream output.
Definition at line 181 of file ZYppCommitPolicy.cc.
|
private |
Pointer to data.
Definition at line 106 of file ZYppCommitPolicy.h.