44 const Arch & arch_r )
const
63 std::ostringstream ret;
64 ret << package->name() <<
'-' << package->edition() <<
'.' << package->arch() <<
".rpm";
97 PathInfo cachepath( info.
packagesPath() / loc.filename() );
99 if ( cachepath.isFile() && ! loc.checksum().empty() )
105 if ( cachechecksum == loc.
checksum() )
112 MIL <<
"provided Package from cache " <<
_package <<
" at " << ret << endl;
132 ERR <<
"Failed to provide Package " <<
_package << endl;
140 ERR <<
"Failed to provide Package " <<
_package << endl;
144 std::string package_str =
_package->name() +
"-" +
_package->edition().asString();
147 std::string detail_str(
str::form(
_(
"Failed to provide Package %s. Do you want to retry retrieval?"), package_str.c_str() ) );
156 ZYPP_THROW(SkipRequestException(
"User requested skip of corrupted file", excpt));
159 ZYPP_THROW(AbortRequestException(
"User requested to abort", excpt));
170 MIL <<
"provided Package " <<
_package <<
" at " << ret << endl;
187 std::list<DeltaRpm> deltaRpms;
193 if ( ! ( deltaRpms.empty() )
198 for( std::list<DeltaRpm>::const_iterator it = deltaRpms.begin();
199 it != deltaRpms.end(); ++it )
201 DBG <<
"tryDelta " << *it << endl;
203 if ( ! ret->empty() )
243 report()->finishDeltaDownload();
245 report()->startDeltaApply( delta );
248 report()->problemDeltaApply(
_(
"applydeltarpm check failed.") );
253 Pathname destination(
_package->repoInfo().packagesPath() /
_package->location().filename() );
258 report()->problemDeltaApply(
_(
"applydeltarpm failed.") );
261 report()->finishDeltaApply();
269 return shared_ptr<void>(
static_cast<void*
>(0),
272 bind( mem_fun_ref(
static_cast<void (shared_ptr<Report>::*)()
>(&shared_ptr<Report>::reset) ),
280 {
return report()->progressDeltaDownload( value ); }
283 {
return report()->progressDeltaApply( value ); }
290 std::string package_str =
_package->name() +
"-" +
_package->edition().asString();
299 ZYPP_THROW(SkipRequestException(
"User requested skip of corrupted file"));
302 ZYPP_THROW(AbortRequestException(
"User requested to abort"));