34#ifdef SINGLE_RPMTRANS_AS_DEFAULT_FOR_ZYPPER
38 const char *val = ::getenv(
"ZYPP_SINGLE_RPMTRANS");
39 bool ret = ( val && std::string_view( val ) ==
"1" );
40#ifdef NO_SINGLETRANS_USERMERGE
45 WAR <<
"Ignore $ZYPP_SINGLE_RPMTRANS=1: Bug 1189788 - UsrMerge: filesystem package breaks system when upgraded in a single rpm transaction" << std::endl;
47 "[boo#1189788] Tumbleweeds filesystem package seems to be unable to perform the\n"
48 " UsrMerge reliably in a single transaction. The requested\n"
49 " $ZYPP_SINGLE_RPMTRANS=1 will therefore be IGNORED because\n"
50 " the UsrMerge did not yet happen on this system."
57 "[TechPreview] $ZYPP_SINGLE_RPMTRANS=1 : New rpm install backend is enabled\n"
58 " If you find any bugs or issues please let us know:\n"
59 " https://bugzilla.opensuse.org/\n"
60 " Component: libzypp (or zypper)\n"
61 " And please attach the /var/log/zypper.log to the bug report."
112 {
_pimpl->_restrictToMedia = (
mediaNr_r == 1 ) ? 1 : 0;
return *
this; }
115 {
return _pimpl->_restrictToMedia; }
136 DBG <<
_pimpl->_downloadMode <<
" is not compatible with singleTransMode, falling back to " <<
DownloadInAdvance << std::endl;
139 return _pimpl->_downloadMode;
152 {
return _pimpl->_rpmInstFlags; }
176 {
return _pimpl->_syncPoolAfterCommit; }
179 {
return _pimpl->_singleTransMode; }
183 str <<
"CommitPolicy(";
184 if (
obj.restrictToMedia() )
185 str <<
" restrictToMedia:" <<
obj.restrictToMedia();
188 str <<
" " <<
obj.downloadMode();
189 if (
obj.syncPoolAfterCommit() )
190 str <<
" syncPoolAfterCommit";
191 if (
obj.rpmInstFlags() )
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Interim helper class to collect global options and settings.
Impl * clone() const
clone for RWCOW_pointer
bool _syncPoolAfterCommit
DownloadMode _downloadMode
target::rpm::RpmInstFlags _rpmInstFlags
unsigned _restrictToMedia
Options and policies for ZYpp::commit.
bool allowDowngrade() const
bool singleTransModeEnabled() const
DownloadMode downloadMode() const
bool rpmNoSignature() const
target::rpm::RpmInstFlags rpmInstFlags() const
unsigned restrictToMedia() const
bool rpmExcludeDocs() const
bool syncPoolAfterCommit() const
RWCOW_pointer< Impl > _pimpl
Pointer to data.
bool replaceFiles() const
Typesafe passing of user data via callbacks.
Wrapper class for stat/lstat.
String related utilities and Regular expression matching.
int readlink(const Pathname &symlink_r, Pathname &target_r)
Like 'readlink'.
std::string hexstring(char n, int w=4)
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
DownloadMode
Supported commit download policies.
@ DownloadAsNeeded
Alternating download and install.
@ DownloadInAdvance
First download all packages to the local cache.
static bool info(const std::string &msg_r, const UserData &userData_r=UserData())
send message text