Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[maven-release-plugin] copy for tag nexus-indexer-2.0.0

git-svn-id: file:///opt/svn/repositories/sonatype.org/nexus/tags/nexus-indexer-2.0.0@4054 2aa8b3fc-8ebb-4439-a84f-95066eaea8ab
  • Loading branch information...
commit d22045928a0b84b8a3f29fdbafe39a3edd690d11 2 parents 797372a + 6d6bd9c
mpowers authored
View
24 src/main/java/org/sonatype/nexus/index/updater/DefaultIndexUpdater.java
@@ -100,17 +100,25 @@ public Date fetchAndUpdateIndex( IndexUpdateRequest updateRequest )
Date updateTimestamp = getTimestamp( properties, IndexingContext.INDEX_TIMESTAMP );
- List<String> filenames = incrementalHandler.loadRemoteIncrementalUpdates( updateRequest, localProperties, properties );
-
- // if we have some incremental files, merge them in
- if ( filenames != null )
+ //If new timestamp is missing, dont bother checking incremental, we have an old file
+ if ( updateTimestamp != null )
{
- for ( String filename : filenames )
+ List<String> filenames = incrementalHandler.loadRemoteIncrementalUpdates( updateRequest, localProperties, properties );
+
+ // if we have some incremental files, merge them in
+ if ( filenames != null )
{
- loadIndexDirectory( updateRequest, true, filename );
+ for ( String filename : filenames )
+ {
+ loadIndexDirectory( updateRequest, true, filename );
+ }
+
+ return updateTimestamp;
}
-
- return updateTimestamp;
+ }
+ else
+ {
+ updateTimestamp = getTimestamp( properties, IndexingContext.INDEX_LEGACY_TIMESTAMP );
}
// if incremental cant be done for whatever reason, simply use old logic of
Please sign in to comment.
Something went wrong with that request. Please try again.