#include "zypp/target/rpm/RpmDb.h"
#include "zypp/target/TargetException.h"
#include "zypp/target/RequestedLocalesFile.h"
-#include "zypp/target/SoftLocksFile.h"
+#include "zypp/target/SolvIdentFile.h"
#include "zypp/target/HardLocksFile.h"
+#include "zypp/ManagedFile.h"
///////////////////////////////////////////////////////////////////
namespace zypp
/** Dtor. */
virtual ~TargetImpl();
- /** Null implementation */
- static TargetImpl_Ptr nullimpl();
-
/**
* generates the unique anonymous id which is called
* when creating the target
Pathname _tmpSolvfilesPath;
public:
- void load();
+ void load( bool force = true );
void unload();
+ void reload();
+
void clearCache();
- void buildCache();
+ bool buildCache();
//@}
public:
/** Install a source package on the Target. */
void installSrcPackage( const SrcPackage_constPtr & srcPackage_r );
+ /** Provides a source package on the Target. */
+ ManagedFile provideSrcPackage( const SrcPackage_constPtr & srcPackage_r );
+
/** Overload to realize stream output. */
virtual std::ostream & dumpOn( std::ostream & str ) const
{
/** \overload */
static LocaleSet requestedLocales( const Pathname & root_r );
+ /** \copydoc Target::updateAutoInstalled */
+ void updateAutoInstalled();
+
/** \copydoc Target::targetDistribution() */
std::string targetDistribution() const;
/** \overload */
/** \overload */
static std::string targetDistributionRelease( const Pathname & root_r );
- /** \copydoc Target::distributionVersion()*/
+ /** \copydoc Target::targetDistributionFlavor()*/
+ std::string targetDistributionFlavor() const;
+ /** \overload */
+ static std::string targetDistributionFlavor( const Pathname & root_r );
+
+ /** \copydoc Target::distributionLabel()*/
Target::DistributionLabel distributionLabel() const;
/** \overload */
static Target::DistributionLabel distributionLabel( const Pathname & root_r );
CommitPackageCache & packageCache_r,
ZYppCommitResult & result_r );
+ /** Commit helper checking for file conflicts after download. */
+ void commitFindFileConflicts( const ZYppCommitPolicy & policy_r, ZYppCommitResult & result_r );
protected:
/** Path to the target */
Pathname _root;
rpm::RpmDb _rpm;
/** Requested Locales database */
RequestedLocalesFile _requestedLocalesFile;
- /** Soft-locks database */
- SoftLocksFile _softLocksFile;
+ /** user/auto installed database */
+ SolvIdentFile _autoInstalledFile;
/** Hard-Locks database */
HardLocksFile _hardLocksFile;
/** Cache distributionVersion */
mutable std::string _distributionVersion;
-
- private:
- /** Null implementation */
- static TargetImpl_Ptr _nullimpl;
};
///////////////////////////////////////////////////////////////////