12 #ifndef ZYPP_TARGET_TARGETIMPL_H
13 #define ZYPP_TARGET_TARGETIMPL_H
42 class CommitPackageCache;
66 TargetImpl(
const Pathname & root_r =
"/",
bool doRebuild_r =
false );
105 void load(
bool force =
true );
126 static Pathname
home(
const Pathname & root_r )
127 {
return root_r /
"/var/lib/zypp"; }
139 virtual std::ostream &
dumpOn( std::ostream & str )
const
141 return str <<
"TargetImpl";
149 bool providesFile (
const std::string & path_str,
const std::string & name_str)
const;
236 #endif // ZYPP_TARGET_TARGETIMPL_H
ZYppCommitResult commit(ResPool pool_r, const ZYppCommitPolicy &policy_r)
Commit changes in the pool.
Interface to the rpm program.
Save and restore locale set from file.
Target::DistributionLabel distributionLabel() const
This is version attribute of the installed base product.
Result returned from ZYpp::commit.
Pathname home() const
The directory to store things.
Pathname _tmpSolvfilesPath
TargetImpl(const Pathname &root_r="/", bool doRebuild_r=false)
Ctor.
Target::commit helper optimizing package provision.
Pathname root() const
The root set for this target.
static TargetImpl_Ptr nullimpl()
Null implementation.
static TargetImpl_Ptr _nullimpl
Null implementation.
std::string _distributionVersion
Cache distributionVersion.
DEFINE_PTR_TYPE(TargetImpl)
TraitsType::constPtrType constPtr
void installSrcPackage(const SrcPackage_constPtr &srcPackage_r)
Install a source package on the Target.
LocaleSet requestedLocales() const
Languages to be supported by the system.
std::string distributionVersion() const
This is version attribute of the installed base product.
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize stream output.
rpm::RpmDb _rpm
RPM database.
Date timestamp() const
return the last modification date of the target
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Store and operate on date (time_t).
Base class for concrete Target implementations.
Pathname _root
Path to the target.
Pathname defaultSolvfilesPath() const
The systems default solv file location.
Options and policies for ZYpp::commit.
bool solvfilesPathIsTemp() const
Whether we're using a temp.
RequestedLocalesFile _requestedLocalesFile
Requested Locales database.
bool providesFile(const std::string &path_str, const std::string &name_str) const
If the package is installed and provides the file Needed to evaluate split provides during Resolver:...
void createLastDistributionFlavorCache() const
generates a cache of the last product flavor
SoftLocksFile _softLocksFile
Soft-locks database.
std::set< PoolItem > PoolItemSet
set of pool items
std::tr1::unordered_set< Locale > LocaleSet
Pathname solvfilesPath() const
The solv file location actually in use (default or temp).
static Pathname home(const Pathname &root_r)
std::list< PoolItem > PoolItemList
list of pool items
std::string anonymousUniqueId() const
anonymous unique id
Base class for reference counted objects.
HardLocksFile _hardLocksFile
Hard-Locks database.
Save and restore soft locks.
std::string targetDistribution() const
This is register.target attribute of the installed base product.
const LocaleSet & locales() const
Return the loacale set.
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
Product::constPtr baseProduct() const
returns the target base installed product, also known as the distribution or platform.
virtual ~TargetImpl()
Dtor.
Reference counted access to a _Tp object calling a custom Dispose function when the last AutoDispose ...
std::ostream & operator<<(std::ostream &str, const TargetImpl &obj)
std::string whoOwnsFile(const std::string &file_r) const
Return name of package owning file or empty string if no installed package owns file.
ManagedFile provideSrcPackage(const SrcPackage_constPtr &srcPackage_r)
Provides a source package on the Target.
std::string whoOwnsFile(const std::string &path_str) const
Return name of package owning path_str or empty string if no installed package owns path_str...
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
void createAnonymousId() const
generates the unique anonymous id which is called when creating the target
Save and restore hardlocks.
friend std::ostream & operator<<(std::ostream &str, const TargetImpl &obj)
rpm::RpmDb & rpm()
The RPM database.
void load(bool force=true)