{ _pimpl->enableStorage(root_r); }
#endif
- void Target::commit(ResPool pool_r, int medianr, PoolItemList & errors_r
+ int Target::commit(ResPool pool_r, int medianr, PoolItemList & errors_r
, PoolItemList & remaining_r, PoolItemList & srcremaining_r)
- { _pimpl->commit(pool_r, medianr, errors_r, remaining_r, srcremaining_r); }
+ { return _pimpl->commit(pool_r, medianr, errors_r, remaining_r, srcremaining_r); }
bool Target::providesFile (const std::string & name_str, const std::string & path_str) const
{ return _pimpl->providesFile (name_str, path_str); }
/** Commit changes in the pool
* \param medianr 0 = all/any media
* > 0 means only the given media number
+ * return number of successfully committed resolvables
*/
- void commit( ResPool pool_r, int medianr, PoolItemList & errors_r
+ int commit( ResPool pool_r, int medianr, PoolItemList & errors_r
, PoolItemList & remaining_r, PoolItemList & srcremaining_r );
/** If the package is installed and provides the file
}
- void TargetImpl::commit(ResPool pool_r, unsigned int medianr, PoolItemList & errors_r, PoolItemList & remaining_r, PoolItemList & srcremaining_r)
+ int TargetImpl::commit(ResPool pool_r, unsigned int medianr, PoolItemList & errors_r, PoolItemList & remaining_r, PoolItemList & srcremaining_r)
{
MIL << "TargetImpl::commit(<pool>, " << medianr << ")" << endl;
}
}
bad = commit (current_srcinstall);
- srcremaining_r.insert(remaining_r.end(), bad.begin(), bad.end());
+ srcremaining_r.insert(srcremaining_r.end(), bad.begin(), bad.end());
}
- return;
+ return to_install.size() - remaining_r.size();
}
/** Commit changes in the pool
media = 0 means any/all medias
media > 0 means limit commits to this media */
- void commit( ResPool pool_r, unsigned int medianr, PoolItemList & errors_r, PoolItemList & remaining_r, PoolItemList & srcremaining_r );
+ int commit( ResPool pool_r, unsigned int medianr, PoolItemList & errors_r, PoolItemList & remaining_r, PoolItemList & srcremaining_r );
/** enables the storage target */
bool isStorageEnabled() const;