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 );
102 void load(
bool force =
true );
123 static Pathname
home(
const Pathname & root_r )
124 {
return root_r /
"/var/lib/zypp"; }
136 virtual std::ostream &
dumpOn( std::ostream & str )
const 138 return str <<
"TargetImpl";
146 bool providesFile (
const std::string & path_str,
const std::string & name_str)
const;
239 #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 shortName and summary attribute of the installed base product.
Result returned from ZYpp::commit.
Pathname home() const
The directory to store things.
Pathname _tmpSolvfilesPath
SolvIdentFile _autoInstalledFile
user/auto installed database
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.
void updateAutoInstalled()
Update the database of autoinstalled packages.
std::string _distributionVersion
Cache distributionVersion.
void commitFindFileConflicts(const ZYppCommitPolicy &policy_r, ZYppCommitResult &result_r)
Commit helper checking for file conflicts after download.
String related utilities and Regular expression matching.
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
std::string targetDistributionFlavor() const
This is register.flavor attribute of the installed base product.
std::set< PoolItem > PoolItemSet
set of pool items
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.
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...
Save and restore a list of solvable names (ident IdString)
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 h...
std::ostream & operator<<(std::ostream &str, const TargetImpl &obj)
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.
Easy-to use interface to the ZYPP dependency resolver.
void createAnonymousId() const
generates the unique anonymous id which is called when creating the target
Save and restore hardlocks.
std::unordered_set< Locale > LocaleSet
friend std::ostream & operator<<(std::ostream &str, const TargetImpl &obj)
rpm::RpmDb & rpm()
The RPM database.
std::string whoOwnsFile(const std::string &file_r) const
Return name of package owning file or empty string if no installed package owns file.
void load(bool force=true)