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() ); }
135 void updateAutoInstalled();
149 std::string targetDistribution()
const;
151 static std::string targetDistribution(
const Pathname & root_r );
156 std::string targetDistributionRelease()
const;
158 static std::string targetDistributionRelease(
const Pathname & root_r );
164 std::string targetDistributionFlavor()
const;
166 static std::string targetDistributionFlavor(
const Pathname & root_r );
252 {
return obj.dumpOn(
str ); }
static Pathname assertprefix(const Pathname &root_r, const Pathname &path_r)
Return path_r prefixed with root_r, unless it is already prefixed.
TraitsType::constPtrType constPtr
Target(const Pathname &root="/", bool doRebuild_r=false) ZYPP_LOCAL
Ctor.
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
friend class zypp_detail::ZYppImpl
Direct access to Impl.
Pathname root() const
Return the root set for this target.
std::string anonymousUniqueId() const
anonymous unique id
std::ostream & dumpOn(std::ostream &str) const override
Stream output.
bool chrooted() const
Whether the targets root is not "/".
intrusive_ptr< Impl > Impl_Ptr
target::rpm::RpmDb & rpmDb()
Refference to the RPM database.
void buildCache()
builds or refreshes the target cache
Pathname assertRootPrefix(const Pathname &path_r) const
Return the path prefixed by the target root, unless it already is prefixed.
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::list< PoolItem > PoolItemList
RW_pointer< Impl, rw_pointer::Intrusive< Impl > > _pimpl
Pointer to implementation.
const VendorAttr & vendorAttr() const
The targets current vendor equivalence settings.
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::...
void unload()
unload target resolvables from the pool
std::string distributionVersion() const
This is version attribute of the installed base product.
void cleanCache()
cleans the target cache (.solv files)
DistributionLabel distributionLabel() const
This is shortName and summary attribute of the installed base product.
void load()
load resolvables into the pool
Definition of vendor equivalence.
Base class for reference counted objects.
Base class for concrete Target implementations.
Interface to the rpm program.
String related utilities and Regular expression matching.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Don't forgett to provide versions for PtrType and constPtrType, esp.
Easy-to use interface to the ZYPP dependency resolver.
std::unordered_set< Locale > LocaleSet
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Wrapper for const correct access via Smart pointer types.
Provides API related macros.
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.