89 bool providesFile (
const std::string & name_str,
const std::string & path_str)
const;
94 std::string
whoOwnsFile (
const std::string & path_str)
const;
97 Pathname
root()
const;
101 {
return Pathname::assertprefix(
root(), path_r ); }
201 Target(
const Pathname &
root =
"/",
bool doRebuild_r =
false );
209 std::ostream &
dumpOn( std::ostream & str )
const;
224 {
return obj.
dumpOn( str ); }
238 #endif // ZYPP_TARGET_H
Interface to the rpm program.
static Target_Ptr nullimpl()
Null implementation.
std::ostream & operator<<(std::ostream &str, const Target &obj)
void cleanCache()
cleans the target cache (.solv files)
static Target_Ptr _nullimpl
DistributionLabel distributionLabel() const
This is shortName and summary attribute of the installed base product.
std::string distributionVersion() const
This is version attribute of the installed base product.
TraitsType::constPtrType constPtr
std::string targetDistribution() const
This is register.target attribute of the installed base product.
target::rpm::RpmDb & rpmDb()
Refference to the RPM database.
Pathname root() const
Return the root set for this target.
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 anonymousUniqueId() const
anonymous unique id
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Store and operate on date (time_t).
Base class for concrete Target implementations.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Provides API related macros.
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.
intrusive_ptr< Impl > Impl_Ptr
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...
void buildCache()
builds or refreshes the target cache
std::tr1::unordered_set< Locale > LocaleSet
Base class for reference counted objects.
void load()
load resolvables into the pool
void unload()
unload target resolvables from the pool
Date timestamp() const
return the last modification date of the target
Target(const Pathname &root="/", bool doRebuild_r=false)
Ctor.
Product::constPtr baseProduct() const
returns the target base installed product, also known as the distribution or platform.
Wrapper for const correct access via Smart pointer types.
std::ostream & dumpOn(std::ostream &str) const
Stream output.
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
friend std::ostream & operator<<(std::ostream &str, const Target &obj)
LocaleSet requestedLocales() const
Languages to be supported by the system.
std::list< PoolItem > PoolItemList