Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / repo / RepoProvideFile.cc
index 3255085..45e2b42 100644 (file)
@@ -305,7 +305,7 @@ namespace zypp
           MIL << "Providing file of repo '" << repo_r.alias() << "' from " << url << endl;
           shared_ptr<MediaSetAccess> access = _impl->mediaAccessForUrl( url, repo_r );
 
-         fetcher.enqueue( loc_r, policy_r.fileChecker() );
+         fetcher.enqueue( loc_r );
          fetcher.start( destinationDir, *access );
 
          // reached if no exception has been thrown, so this is the correct file
@@ -320,10 +320,12 @@ namespace zypp
         }
         catch ( const UserRequestException & excpt )
        {
+         ZYPP_CAUGHT( excpt );
          ZYPP_RETHROW( excpt );
        }
         catch ( const FileCheckException & excpt )
        {
+         ZYPP_CAUGHT( excpt );
          ZYPP_RETHROW( excpt );
        }
         catch ( const Exception &e )