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