return op.result;
}
+ Pathname MediaSetAccess::provideOptionalFile( const Pathname & file, unsigned media_nr )
+ {
+ try
+ {
+ if ( doesFileExist( file, media_nr ) )
+ return provideFile( file, media_nr, PROVIDE_NON_INTERACTIVE );
+ }
+ catch ( const media::MediaFileNotFoundException & excpt_r )
+ { ZYPP_CAUGHT( excpt_r ); }
+ catch ( const media::MediaNotAFileException & excpt_r )
+ { ZYPP_CAUGHT( excpt_r ); }
+ return Pathname();
+ }
+
bool MediaSetAccess::doesFileExist(const Pathname & file, unsigned media_nr )
{
ProvideFileExistenceOperation op;