15 #include <zypp-core/base/String.h>
16 #include <zypp-core/base/StringV.h>
20 #include <zypp-core/base/LogControl.h>
21 #include <zypp-core/TriBool.h>
30 static TriBool singleTrans = indeterminate;
31 if ( indeterminate(singleTrans) ) {
32 const char *val = ::getenv(
"ZYPP_SINGLE_RPMTRANS");
33 if ( val && std::string_view( val ) ==
"1" )
39 return bool( singleTrans );
67 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
99 DBG << val_r <<
" is not compatible with singleTransMode, falling back to " <<
DownloadInAdvance << std::endl;
155 str <<
"CommitPolicy(";
162 str <<
" syncPoolAfterCommit";
Interim helper class to collect global options and settings.
bool _syncPoolAfterCommit
Impl * clone() const
clone for RWCOW_pointer
DownloadMode _downloadMode
target::rpm::RpmInstFlags _rpmInstFlags
unsigned _restrictToMedia
Options and policies for ZYpp::commit.
bool allowDowngrade() const
ZYppCommitPolicy & rpmInstFlags(target::rpm::RpmInstFlags newFlags_r)
The default target::rpm::RpmInstFlags.
bool singleTransModeEnabled() const
ZYppCommitPolicy & syncPoolAfterCommit(bool yesNo_r)
Kepp pool in sync with the Target databases after commit (default: true)
ZYppCommitPolicy & dryRun(bool yesNo_r)
Set dry run (default: false).
ZYppCommitPolicy & restrictToMedia(unsigned mediaNr_r)
Restrict commit to media 1.
DownloadMode downloadMode() const
bool rpmNoSignature() const
target::rpm::RpmInstFlags rpmInstFlags() const
ZYppCommitPolicy & downloadMode(DownloadMode val_r)
Commit download policy to use.
unsigned restrictToMedia() const
bool rpmExcludeDocs() const
bool syncPoolAfterCommit() const
RWCOW_pointer< Impl > _pimpl
Pointer to data.
bool replaceFiles() const
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
String related utilities and Regular expression matching.
std::string hexstring(char n, int w=4)
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const InputStream &obj)
DownloadMode
Supported commit download policies.
@ DownloadAsNeeded
Alternating download and install.
@ DownloadInAdvance
First download all packages to the local cache.