19 #include <zypp-core/APIConfig.h> 34 #if APIConfig(LIBZYPP_CONFIG_USE_CLASSIC_RPMTRANS_BY_DEFAULT) 36 inline bool ImZYPPER()
41 inline bool singleTransInEnv()
43 const char *val = ::getenv(
"ZYPP_SINGLE_RPMTRANS");
47 {
return ImZYPPER() && singleTransInEnv(); }
54 inline bool singleTransInEnv()
56 const char *val = ::getenv(
"ZYPP_SINGLE_RPMTRANS");
60 {
return singleTransInEnv(); }
79 for (
const auto & pi : q.poolItem() ) {
80 if ( pi.status().isToBeInstalled() )
122 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
202 WAR <<
"Ignore $ZYPP_SINGLE_RPMTRANS=1: Bug 1189788 - UsrMerge: filesystem package breaks system when upgraded in a single rpm transaction" << std::endl;
204 "[bsc#1189788] The filesystem package seems to be unable to perform the pending\n" 205 " UsrMerge reliably in a single transaction. The single_rpmtrans\n" 206 " backend will therefore be IGNORED and the transaction is performed\n" 207 " by the classic_rpmtrans backend." 216 str <<
"CommitPolicy(";
223 str <<
" syncPoolAfterCommit";
bool strToFalse(const C_Str &str)
Return false if str is 0, false, no, off, never.
DownloadMode downloadMode() const
Container of Solvable providing a Capability (read only).
Alternating download and install.
First download all packages to the local cache.
int readlink(const Pathname &symlink_r, Pathname &target_r)
Like 'readlink'.
bool _syncPoolAfterCommit
ZYppCommitPolicy & rpmInstFlags(target::rpm::RpmInstFlags newFlags_r)
The default target::rpm::RpmInstFlags.
bool allowDowngrade() const
ZYppCommitPolicy & dryRun(bool yesNo_r)
Set dry run (default: false).
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
bool singleTransEnabled()
bool rpmExcludeDocs() const
target::rpm::RpmInstFlags rpmInstFlags() const
bool transactionWillUsrmerge()
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.
bool rpmNoSignature() const
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.
Impl * clone() const
clone for RWCOW_pointer
bool replaceFiles() const
RWCOW_pointer< Impl > _pimpl
Pointer to data.
bool isPreUsrmerge(const Pathname &root_r)
Typesafe passing of user data via callbacks.
Wrapper class for ::stat/::lstat.
bool singleTransModeEnabled() const
Whether the single_rpmtrans backend is enabled (or the classic_rpmtrans)
static bool info(const std::string &msg_r, const UserData &userData_r=UserData())
send message text
bool syncPoolAfterCommit() const
target::rpm::RpmInstFlags _rpmInstFlags
Easy-to use interface to the ZYPP dependency resolver.
std::string hexstring(char n, int w=4)
unsigned restrictToMedia() const
DownloadMode
Supported commit download policies.