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 );
180 std::string distributionVersion()
const;
182 static std::string distributionVersion(
const Pathname & root_r );
192 std::string distributionFlavor()
const;
194 static std::string distributionFlavor(
const Pathname & root_r );
204 std::string anonymousUniqueId()
const;
206 static std::string anonymousUniqueId(
const Pathname & root_r );
237 friend
std::ostream & operator<<(
std::ostream &
str, const
Target & obj );
243 friend class zypp_detail::ZYppImpl;
252 {
return obj.dumpOn(
str ); }
266 #endif // ZYPP_TARGET_H Interface to the rpm program.
std::unordered_set< Locale > LocaleSet
intrusive_ptr< Impl > Impl_Ptr
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
AsyncOpRef< expected< repo::AsyncRefreshContextRef > > buildCache(repo::AsyncRefreshContextRef refCtx, zypp::RepoManagerFlags::CacheBuildPolicy policy, ProgressObserverRef progressObserver)
Provides API related macros.
TraitsType::constPtrType constPtr
bool chrooted() const
Whether the targets root is not "/".
Base class for concrete Target implementations.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
DEFINE_PTR_TYPE(Application)
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.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
Base class for reference counted objects.
Pathname assertRootPrefix(const Pathname &path_r) const
Return the path prefixed by the target root, unless it already is prefixed.
Wrapper for const correct access via Smart pointer types.
Easy-to use interface to the ZYPP dependency resolver.
std::list< PoolItem > PoolItemList
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.