#include <iosfwd>
-#include "zypp/base/ReferenceCounted.h"
-#include "zypp/base/NonCopyable.h"
-#include "zypp/base/PtrTypes.h"
-#include "zypp/APIConfig.h"
+#include <zypp/base/ReferenceCounted.h>
+#include <zypp/base/NonCopyable.h>
+#include <zypp/base/PtrTypes.h>
+#include <zypp/APIConfig.h>
-#include "zypp/Product.h"
-#include "zypp/Pathname.h"
-#include "zypp/ResPool.h"
+#include <zypp/Product.h>
+#include <zypp/Pathname.h>
+#include <zypp/ResPool.h>
///////////////////////////////////////////////////////////////////
namespace zypp
*/
void unload();
- /** Null implementation */
- static Target_Ptr nullimpl();
-
/** Refference to the RPM database */
target::rpm::RpmDb & rpmDb();
/** 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.
*/
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.
*
/** \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
*/
/** Pointer to implementation */
RW_pointer<Impl,rw_pointer::Intrusive<Impl> > _pimpl;
-
- static Target_Ptr _nullimpl;
};
///////////////////////////////////////////////////////////////////