X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=zypp%2FTarget.h;h=1730c5c6126e1bc5462288d459f7259602a7fb86;hb=HEAD;hp=209c2697cdbe58f04afecedcc83ba6678b7c1baf;hpb=9025954497e4a5540eea52cebc0e2e9622a8075f;p=platform%2Fupstream%2Flibzypp.git diff --git a/zypp/Target.h b/zypp/Target.h index 209c269..62cffba 100644 --- a/zypp/Target.h +++ b/zypp/Target.h @@ -14,14 +14,14 @@ #include -#include "zypp/base/ReferenceCounted.h" -#include "zypp/base/NonCopyable.h" -#include "zypp/base/PtrTypes.h" -#include "zypp/APIConfig.h" +#include +#include +#include +#include -#include "zypp/Product.h" -#include "zypp/Pathname.h" -#include "zypp/ResPool.h" +#include +#include +#include /////////////////////////////////////////////////////////////////// namespace zypp @@ -78,9 +78,6 @@ namespace zypp */ void unload(); - /** Null implementation */ - static Target_Ptr nullimpl(); - /** Refference to the RPM database */ target::rpm::RpmDb & rpmDb(); @@ -96,13 +93,14 @@ namespace zypp /** Return the root set for this target */ Pathname root() const; + /** Whether the targets \ref root is not \c "/". */ + bool chrooted() const + { return( ! root().emptyOrRoot() ); } + /** Return the path prefixed by the target root, unless it already is prefixed. */ Pathname assertRootPrefix( const Pathname & path_r ) const { return Pathname::assertprefix( root(), path_r ); } - /** return the last modification date of the target */ - Date timestamp() const; - /** * returns the target base installed product, also known as * the distribution or platform. @@ -130,6 +128,11 @@ namespace zypp */ static LocaleSet requestedLocales( const Pathname & root_r ); + /** Update the database of autoinstalled packages. + * This is done on commit, so you usually don't need to call this explicitly. + */ + void updateAutoInstalled(); + public: /** \name Base product and registration. * @@ -153,7 +156,7 @@ namespace zypp /** \overload */ static std::string targetDistributionRelease( const Pathname & root_r ); - /** This is \c register.release attribute of the installed base product. + /** This is \c register.flavor attribute of the installed base product. * Used for registration. * \note don't mistake this for \ref distributionFlavor */ @@ -223,8 +226,6 @@ namespace zypp /** Pointer to implementation */ RW_pointer > _pimpl; - - static Target_Ptr _nullimpl; }; ///////////////////////////////////////////////////////////////////