//
///////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////
- namespace
- { /////////////////////////////////////////////////////////////////
-
- bool yes() { return true; }
- bool no() { return false; }
-
- /////////////////////////////////////////////////////////////////
- } // namespace
- ///////////////////////////////////////////////////////////////////
-
- ProvideFilePolicy & ProvideFilePolicy::failOnChecksumErrorCB( bool yesno_r )
- {
- _failOnChecksumErrorCB = (yesno_r ? &yes : &no);
- return *this;
- }
-
bool ProvideFilePolicy::progress( int value ) const
{
if ( _progressCB )
return true;
}
- bool ProvideFilePolicy::failOnChecksumError() const
- {
- if ( _failOnChecksumErrorCB )
- return _failOnChecksumErrorCB();
- return true;
- }
-
} // namespace zypp
///////////////////////////////////////////////////////////////////