mirror of https://github.com/apache/maven.git
correct bug that caused certain snapshot files to never be updated
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169397 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7040851876
commit
a53624b4b4
|
@ -127,9 +127,20 @@ public class SnapshotArtifactMetadata
|
|||
return 1;
|
||||
}
|
||||
else if ( timestamp == null )
|
||||
{
|
||||
if ( metadata.timestamp == null )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if ( metadata.timestamp == null )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return timestamp.compareTo( metadata.timestamp );
|
||||
|
|
Loading…
Reference in New Issue