{
ArtifactRepositoryPolicy policy =
metadata.isSnapshot() ? repository.getSnapshots() : repository.getReleases();
File file =
new File( localRepository.getBasedir(), localRepository.pathOfLocalRepositoryMetadata( metadata,
repository ) );
if ( ( policy.isEnabled() && request.isForceUpdate() )
|| updateCheckManager.isUpdateRequired( metadata, repository, file ) )
{