Skip to content

Commit

Permalink
Add checkMask in maven metadata generator downloadMissing (#2482)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhan1 authored Nov 28, 2024
1 parent 7c84ffb commit 113c775
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
import static org.commonjava.atlas.maven.ident.util.SnapshotUtils.LOCAL_SNAPSHOT_VERSION_PART;
import static org.commonjava.atlas.maven.ident.util.SnapshotUtils.generateUpdateTimestamp;
import static org.commonjava.atlas.maven.ident.util.SnapshotUtils.getCurrentTimestamp;
import static org.commonjava.indy.core.content.PathMaskChecker.checkMask;
import static org.commonjava.indy.core.content.PathMaskChecker.checkMavenMetadataMask;
import static org.commonjava.indy.core.content.group.GroupMergeHelper.GROUP_METADATA_EXISTS;
import static org.commonjava.indy.core.content.group.GroupMergeHelper.GROUP_METADATA_GENERATED;
Expand Down Expand Up @@ -856,8 +857,13 @@ private Callable<MetadataResult> downloadMissing( ArtifactStore store, String to
try
{
logger.trace( "Starting metadata download: {}:{}", store.getKey(), toMergePath );
if ( !checkMask( store, toMergePath ) )
{
logger.debug( "Transfer {}:{} skipped due to checkMask during maven metadata generator downloadMissing.",
store.getKey(), toMergePath );
return null;
}
Transfer memberMetaTxfr = fileManager.retrieveRaw( store, toMergePath, new EventMetadata() );

if ( exists( memberMetaTxfr ) )
{
final MetadataXpp3Reader reader = new MetadataXpp3Reader();
Expand Down

0 comments on commit 113c775

Please sign in to comment.