Go to the documentation of this file.
20 #include <zypp/APIConfig.h>
87 bool providesFile (
const std::string & name_str,
const std::string & path_str)
const;
92 std::string
whoOwnsFile (
const std::string & path_str)
const;
99 {
return( !
root().emptyOrRoot() ); }
235 std::ostream &
dumpOn( std::ostream &
str )
const;
262 #endif // ZYPP_TARGET_H
std::string targetDistributionFlavor() const
This is register.flavor attribute of the installed base product.
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
std::ostream & operator<<(std::ostream &str, const Target &obj)
Stream output.
DEFINE_PTR_TYPE(Application)
Pathname root() const
Return the root set for this target.
void cleanCache()
cleans the target cache (.solv files)
std::string targetDistribution() const
This is register.target attribute of the installed base product.
TraitsType::constPtrType constPtr
Base class for reference counted objects.
bool chrooted() const
Whether the targets root is not "/".
Definition of vendor equivalence.
static Pathname assertprefix(const Pathname &root_r, const Pathname &path_r)
Return path_r prefixed with root_r, unless it is already prefixed.
bool providesFile(const std::string &name_str, const std::string &path_str) const
If the package is installed and provides the file Needed to evaluate split provides during Resolver::...
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.
target::rpm::RpmDb & rpmDb()
Refference to the RPM database.
LocaleSet requestedLocales() const
Languages to be supported by the system.
Wrapper for const correct access via Smart pointer types.
Base class for concrete Target implementations.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
intrusive_ptr< Impl > Impl_Ptr
Interface to the rpm program.
Product::constPtr baseProduct() const
returns the target base installed product, also known as the distribution or platform.
Easy-to use interface to the ZYPP dependency resolver.
RW_pointer< Impl, rw_pointer::Intrusive< Impl > > _pimpl
Pointer to implementation.
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
void load()
load resolvables into the pool
void unload()
unload target resolvables from the pool
DistributionLabel distributionLabel() const
This is shortName and summary attribute of the installed base product.
void buildCache()
builds or refreshes the target cache
friend std::ostream & operator<<(std::ostream &str, const Target &obj)
std::ostream & dumpOn(std::ostream &str) const
Stream output.
std::string anonymousUniqueId() const
anonymous unique id
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Pathname assertRootPrefix(const Pathname &path_r) const
Return the path prefixed by the target root, unless it already is prefixed.
std::unordered_set< Locale > LocaleSet
Target(const Pathname &root="/", bool doRebuild_r=false)
Ctor.
const VendorAttr & vendorAttr() const
The targets current vendor equivalence settings.
void updateAutoInstalled()
Update the database of autoinstalled packages.
String related utilities and Regular expression matching.
std::string distributionVersion() const
This is version attribute of the installed base product.
std::list< PoolItem > PoolItemList