46 MIL <<
"Initializing keyring..." << std::endl;
96 MIL <<
"initTarget( " << root << (doRebuild_r?
", rebuilddb":
"") <<
")" << endl;
99 MIL <<
"Repeated call to initializeTarget()" << endl;
127 if ( getenv(
"ZYPP_TESTSUITE_FAKE_ARCH") )
132 MIL <<
"Attempt to commit (" << policy_r <<
")" << endl;
153 MIL <<
"Commit (" << policy_r <<
") returned: "
162 _target->_pimpl->installSrcPackage( srcPackage_r );
169 return _target->_pimpl->provideSrcPackage( srcPackage_r );
183 static TmpDir zypp_tmp_dir( TmpPath::defaultLocation(),
"zypp." );
184 return zypp_tmp_dir.
path();
194 return str <<
"ZYppImpl";
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)
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.
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.
DiskUsageCounter::MountPointSet getPartitions() const
Reference counted access to a _Tp object calling a custom Dispose function when the last AutoDispose ...
Pathname homePath() const
Get the path where zypp related plugins store persistent data and caches.
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="/")