maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r1056307 - /maven/maven-3/trunk/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
Date Fri, 07 Jan 2011 13:18:33 GMT
Author: bentmann
Date: Fri Jan  7 13:18:33 2011
New Revision: 1056307

URL: http://svn.apache.org/viewvc?rev=1056307&view=rev
Log:
o Fixed detection of local metadata corruption

Modified:
    maven/maven-3/trunk/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

Modified: maven/maven-3/trunk/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java?rev=1056307&r1=1056306&r2=1056307&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
(original)
+++ maven/maven-3/trunk/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
Fri Jan  7 13:18:33 2011
@@ -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() );



Mime
View raw message