ignore dud checksums... the repository ones are whacked

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@164067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-04-21 14:26:44 +00:00
parent 804e18cac0
commit 082bda52a0
1 changed files with 6 additions and 4 deletions

View File

@ -318,10 +318,13 @@ public class DefaultWagonManager
String expectedChecksum = FileUtils.fileRead( checksumFile );
if ( !expectedChecksum.equals( actualChecksum ) )
{
getLogger().warn(
"*** CHECKSUM MISMATCH - currently disabled fail due to bad repository checksums ***" );
// TODO: optionally retry?
throw new ChecksumFailedException(
"Checksum failed on download: local = " + actualChecksum + "; remote = " +
expectedChecksum );
/* throw new ChecksumFailedException( "Checksum failed on download: local = '" + actualChecksum +
"'; remote = '" + expectedChecksum + "'" );
*/
}
}
catch ( ResourceDoesNotExistException e )
@ -446,5 +449,4 @@ public class DefaultWagonManager
{
this.downloadMonitor = downloadMonitor;
}
}