Go to the documentation of this file.
12 #ifndef ZYPP_TARGET_TARGETIMPL_H
13 #define ZYPP_TARGET_TARGETIMPL_H
103 void load(
bool force =
true );
125 {
return root_r /
"/var/lib/zypp"; }
137 virtual std::ostream &
dumpOn( std::ostream &
str )
const
139 return str <<
"TargetImpl";
147 bool providesFile (
const std::string & path_str,
const std::string & name_str)
const;
247 #endif // ZYPP_TARGET_TARGETIMPL_H
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize stream output.
rpm::RpmDb & rpm()
The RPM database.
ZYppCommitResult commit(ResPool pool_r, const ZYppCommitPolicy &policy_r)
Commit changes in the pool.
Pathname home() const
The directory to store things.
TraitsType::constPtrType constPtr
rpm::RpmDb _rpm
RPM database.
Base class for reference counted objects.
std::string anonymousUniqueId() const
anonymous unique id
virtual ~TargetImpl()
Dtor.
DEFINE_PTR_TYPE(TargetImpl)
Pathname _tmpSolvfilesPath
Pathname solvfilesPath() const
The solv file location actually in use (default or temp).
Definition of vendor equivalence.
static Pathname home(const Pathname &root_r)
Save and restore a list of solvable names (ident IdString)
std::ostream & operator<<(std::ostream &str, const TargetImpl &obj)
Product::constPtr baseProduct() const
returns the target base installed product, also known as the distribution or platform.
void load(bool force=true)
std::string _distributionVersion
Cache distributionVersion.
void commitFindFileConflicts(const ZYppCommitPolicy &policy_r, ZYppCommitResult &result_r)
Commit helper checking for file conflicts after download.
std::list< PoolItem > PoolItemList
list of pool items
Base class for concrete Target implementations.
void createAnonymousId() const
generates the unique anonymous id which is called when creating the target
std::string targetDistributionFlavor() const
This is register.flavor attribute of the installed base product.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Target::DistributionLabel distributionLabel() const
This is shortName and summary attribute of the installed base product.
Target::commit helper optimizing package provision.
Interface to the rpm program.
Pathname root() const
The root set for this target.
Easy-to use interface to the ZYPP dependency resolver.
VendorAttr _vendorAttr
vendor equivalence settings.
LocaleSet requestedLocales() const
Languages to be supported by the system.
Result returned from ZYpp::commit.
SolvIdentFile _autoInstalledFile
user/auto installed database
ManagedFile provideSrcPackage(const SrcPackage_constPtr &srcPackage_r)
Provides a source package on the Target.
std::string distributionVersion() const
This is version attribute of the installed base product.
void updateAutoInstalled()
Update the database of autoinstalled packages.
Save and restore hardlocks.
friend std::ostream & operator<<(std::ostream &str, const TargetImpl &obj)
std::set< PoolItem > PoolItemSet
set of pool items
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::...
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
RequestedLocalesFile _requestedLocalesFile
Requested Locales database.
Pathname defaultSolvfilesPath() const
The systems default solv file location.
bool empty() const
Test for an empty path.
std::unordered_set< Locale > LocaleSet
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
bool solvfilesPathIsTemp() const
Whether we're using a temp.
const VendorAttr & vendorAttr() const
The targets current vendor equivalence settings.
const LocaleSet & locales() const
Return the loacale set.
void createLastDistributionFlavorCache() const
generates a cache of the last product flavor
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.
String related utilities and Regular expression matching.
Options and policies for ZYpp::commit.
Pathname _root
Path to the target.
HardLocksFile _hardLocksFile
Hard-Locks database.
TargetImpl(const Pathname &root_r="/", bool doRebuild_r=false)
Ctor.
std::string targetDistribution() const
This is register.target attribute of the installed base product.
void installSrcPackage(const SrcPackage_constPtr &srcPackage_r)
Install a source package on the Target.
std::string whoOwnsFile(const std::string &file_r) const
Return name of package owning file or empty string if no installed package owns file.
Save and restore locale set from file.