17 #include <zypp/base/ReferenceCounted.h> 18 #include <zypp/base/NonCopyable.h> 19 #include <zypp/base/PtrTypes.h> 23 #include <zypp/Pathname.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 targetDistribution() const
This is register.target attribute of the installed base product.
Interface to the rpm program.
std::string distributionVersion() const
This is version attribute of the installed base product.
std::ostream & operator<<(std::ostream &str, const Target &obj)
void cleanCache()
cleans the target cache (.solv files)
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::...
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
TraitsType::constPtrType constPtr
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.
bool chrooted() const
Whether the targets root is not "/".
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Base class for concrete Target implementations.
LocaleSet requestedLocales() const
Languages to be supported by the system.
DEFINE_PTR_TYPE(Application)
Provides API related macros.
RW_pointer< Impl, rw_pointer::Intrusive< Impl > > _pimpl
Pointer to implementation.
static Pathname assertprefix(const Pathname &root_r, const Pathname &path_r)
Return path_r prefixed with root_r, unless it is already prefixed.
Definition of vendor equivalence.
Product::constPtr baseProduct() const
returns the target base installed product, also known as the distribution or platform.
intrusive_ptr< Impl > Impl_Ptr
void buildCache()
builds or refreshes the target cache
Base class for reference counted objects.
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
Pathname assertRootPrefix(const Pathname &path_r) const
Return the path prefixed by the target root, unless it already is prefixed.
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.
Target(const Pathname &root="/", bool doRebuild_r=false)
Ctor.
Wrapper for const correct access via Smart pointer types.
friend std::ostream & operator<<(std::ostream &str, const Target &obj)
std::ostream & dumpOn(std::ostream &str) const
Stream output.
const VendorAttr & vendorAttr() const
The targets current vendor equivalence settings.
std::string anonymousUniqueId() const
anonymous unique id
void updateAutoInstalled()
Update the database of autoinstalled packages.
Easy-to use interface to the ZYPP dependency resolver.
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
std::unordered_set< Locale > LocaleSet
std::list< PoolItem > PoolItemList
Pathname root() const
Return the root set for this target.
std::string targetDistributionFlavor() const
This is register.flavor attribute of the installed base product.