49 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
66 {
_pimpl->_restrictToMedia = ( mediaNr_r == 1 ) ? 1 : 0;
return *
this; }
69 {
return _pimpl->_restrictToMedia; }
73 {
_pimpl->_dryRun = yesNo_r;
return *
this; }
76 {
return _pimpl->_dryRun; }
80 {
_pimpl->_downloadMode = val_r;
return *
this; }
83 {
return _pimpl->_downloadMode; }
87 {
_pimpl->_rpmInstFlags = newFlags_r;
return *
this; }
96 {
return _pimpl->_rpmInstFlags; }
106 {
_pimpl->_syncPoolAfterCommit = yesNo_r;
return *
this; }
109 {
return _pimpl->_syncPoolAfterCommit; }
114 str <<
"CommitPolicy(";
121 str <<
" syncPoolAfterCommit";
bool _syncPoolAfterCommit
ZYppCommitPolicy & rpmInstFlags(target::rpm::RpmInstFlags newFlags_r)
The default target::rpm::RpmInstFlags.
ZYppCommitPolicy & dryRun(bool yesNo_r)
Set dry run (default: false).
bool rpmNoSignature() const
bool syncPoolAfterCommit() const
unsigned restrictToMedia() const
bool rpmExcludeDocs() const
DownloadMode downloadMode() const
std::ostream & operator<<(std::ostream &str, const Exception &obj)
DownloadMode _downloadMode
Options and policies for ZYpp::commit.
ZYppCommitPolicy & downloadMode(DownloadMode val_r)
Commit download policy to use.
Interim helper class to collect global options and settings.
unsigned _restrictToMedia
ZYppCommitPolicy & syncPoolAfterCommit(bool yesNo_r)
Kepp pool in sync with the Target databases after commit (default: true)
ZYppCommitPolicy & restrictToMedia(unsigned mediaNr_r)
Restrict commit to media 1.
target::rpm::RpmInstFlags rpmInstFlags() const
RWCOW_pointer< Impl > _pimpl
Pointer to data.
Impl * clone() const
clone for RWCOW_pointer
target::rpm::RpmInstFlags _rpmInstFlags
std::string hexstring(char n, int w=4)
DownloadMode
Supported commit download policies.