{ _pimpl->enableStorage(root_r); }
#endif
+ Pathname Target::root() const
+ { return _pimpl->root(); }
+
int Target::commit(ResPool pool_r, int medianr, PoolItemList & errors_r
, PoolItemList & remaining_r, PoolItemList & srcremaining_r)
{ return _pimpl->commit(pool_r, medianr, errors_r, remaining_r, srcremaining_r); }
/** Set the log file for target */
bool setInstallationLogfile(const Pathname & path_r);
+ /** Return the root set for this target */
+ Pathname root() const;
+
public:
/** Ctor */
explicit
_storage.init(root_r);
_storage_enabled = true;
}
+
+ Pathname TargetImpl::root() const
+ {
+ return _root;
+ }
const ResStore & TargetImpl::resolvables()
{
/** All resolvables in the target. */
const ResStore & resolvables();
+ /** The root set for this target */
+ Pathname root() const;
+
/** Commit changes in the pool
media = 0 means any/all medias
media > 0 means limit commits to this media */
void ZYppImpl::initTarget(const Pathname & root, bool commit_only)
{
- if (_target) {
- WAR << "Repeated call to initTarget()" << endl;
+ if (_target && _target->root() == root) {
+ MIL << "Repeated call to initTarget()" << endl;
return;
}