o Fixed detection of local metadata corruption

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1056307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2011-01-07 13:18:33 +00:00
parent 499e2d7ee7
commit 33ae0b2003
1 changed files with 1 additions and 2 deletions

View File

@ -294,8 +294,7 @@ public class DefaultVersionResolver
*/
if ( versioning != null && repository instanceof LocalRepository )
{
if ( !versioning.getSnapshotVersions().isEmpty()
|| ( versioning.getSnapshot() != null && versioning.getSnapshot().getBuildNumber() > 0 ) )
if ( versioning.getSnapshot() != null && versioning.getSnapshot().getBuildNumber() > 0 )
{
Versioning repaired = new Versioning();
repaired.setLastUpdated( versioning.getLastUpdated() );