Go to the documentation of this file.
40 static weak_ptr<callback::TempConnect<media::MediaChangeReport> > globalguard;
41 if ( condition_r && ! (
_guard = globalguard.lock()) )
72 MIL <<
"Initializing keyring..." << std::endl;
122 MIL <<
"initTarget( " << root << (doRebuild_r?
", rebuilddb":
"") <<
")" << endl;
125 MIL <<
"Repeated call to initializeTarget()" << endl;
151 if ( getenv(
"ZYPP_TESTSUITE_FAKE_ARCH") )
156 MIL <<
"Attempt to commit (" << policy_r <<
")" << endl;
183 MIL <<
"Commit (" << policy_r <<
") returned: "
192 _target->_pimpl->installSrcPackage( srcPackage_r );
199 return _target->_pimpl->provideSrcPackage( srcPackage_r );
221 return str <<
"ZYppImpl";
231 return _tmpdir.
path();
ZYppCommitPolicy & dryRun(bool yesNo_r)
Set dry run (default: false).
void installSrcPackage(const SrcPackage_constPtr &srcPackage_r)
Install a source package on the Target.
static Pool instance()
Singleton ctor.
Temporarily set/unset an environment variable.
Base class for Exception.
static const Pathname & defaultLocation()
static const std::string & systemRepoAlias()
Reserved system repository alias @System .
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
static callback::SendReport< JobReport > & instance()
Singleton sender instance.
void setPartitions(const DiskUsageCounter::MountPointSet &mp)
Pathname homePath() const
Get the path where zypp related plugins store persistent data and caches
ManagedFile provideSrcPackage(const SrcPackage_constPtr &srcPackage_r)
Install a source package on the Target.
Target_Ptr target() const
Provide a new empty temporary directory and recursively delete it when no longer needed.
Dependency resolver interface.
std::ostream & about(std::ostream &str) const
Print some detail about the current libzypp version.
Compute disk space occupied by packages across partitions/directories.
static ZConfig & instance()
Singleton ctor.
Easy-to use interface to the ZYPP dependency resolver.
std::string numstring(char n, int w=0)
std::ostream & operator<<(std::ostream &str, const ZYppImpl &obj)
ZYppCommitPolicy & syncPoolAfterCommit(bool yesNo_r)
Kepp pool in sync with the Target databases after commit (default: true)
Result returned from ZYpp::commit.
static MountPointSet detectMountPoints(const std::string &rootdir="/")
Get mountpoints of system below rootdir If we happen to detect snapshotting btrfs partitions,...
Pathname myTmpDir()
Global access to the zypp.TMPDIR (created on demand, deleted when libzypp is unloaded)
DiskUsageCounter::MountPointSet diskUsage()
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
std::set< MountPoint > MountPointSet
bool empty() const
Test for an empty path.
ZYppCommitResult commit(const ZYppCommitPolicy &policy_r)
Commit changes and transactions.
Temporarily connect a ReceiveReport then restore the previous one.
void initializeTarget(const Pathname &root, bool doRebuild_r)
shared_ptr< DiskUsageCounter > _disk_usage
defined mount points, used for disk usage counting
Pathname tmpPath() const
Get the path where zypp related plugins store tmp data
String related utilities and Regular expression matching.
Options and policies for ZYpp::commit.
DiskUsageCounter::MountPointSet getPartitions() const
void setHomePath(const Pathname &path)
set the home, if you need to change it