virtual void problemDeltaDownload( std::string description )
{}
+ virtual void finishDeltaDownload()
+ {}
+
// Apply delta rpm:
// - local path of downloaded delta
// - aplpy is not interruptable
virtual void problemDeltaApply( std::string description )
{}
+ virtual void finishDeltaApply()
+ {}
+
// Dowmload patch rpm:
// - path below url reported on start()
// - expected download size (0 if unknown)
virtual void problemPatchDownload( std::string description )
{}
+ virtual void finishPatchDownload()
+ {}
+
// return false if the download should be aborted right now
virtual bool progress(int value, Resolvable::constPtr resolvable_ptr)
report()->problemDeltaDownload( excpt.asUserString() );
return ManagedFile();
}
+ report()->finishDeltaDownload();
report()->startDeltaApply( delta );
if ( ! applydeltarpm::check( delta_r.baseversion().sequenceinfo() ) )
return ManagedFile();
}
-
Pathname destination( Pathname::dirname( delta ) / defRpmFileName( _package ) );
/* just to ease testing with non remote sources */
if ( ! _package->source().remote() )
report()->problemDeltaApply( "applydeltarpm failed." );
return ManagedFile();
}
+ report()->finishDeltaApply();
return ManagedFile( destination, filesystem::unlink );
}
report()->problemPatchDownload( excpt.asUserString() );
return ManagedFile();
}
+ report()->finishPatchDownload();
return patch;
}