Skip to content

Commit

Permalink
Merge pull request #2484 from sswguo/checksum_generator
Browse files Browse the repository at this point in the history
Disable FORCE_CHECKSUM_AND_WRITE in event publisher
  • Loading branch information
sswguo authored Nov 29, 2024
2 parents 665097d + e3651f7 commit 2c86c45
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import java.util.Date;
import java.util.Map;

import static org.commonjava.indy.core.content.ContentMetadataGenerator.FORCE_CHECKSUM_AND_WRITE;
import static org.commonjava.maven.galley.util.LocationUtils.ATTR_PATH_ENCODE;
import static org.commonjava.maven.galley.util.LocationUtils.PATH_ENCODE_BASE64;

Expand Down Expand Up @@ -156,6 +157,7 @@ private void transformFileEvent( org.commonjava.maven.galley.event.FileEvent gal

fileEvent.setTimestamp( new Date() );

galleyMetadata.set( FORCE_CHECKSUM_AND_WRITE, Boolean.FALSE );
TransferMetadata artifactData = contentDigester.digest( affectedStore, path, galleyMetadata );
fileEvent.setMd5( artifactData.getDigests().get( ContentDigest.MD5 ) );
fileEvent.setSha1( artifactData.getDigests().get( ContentDigest.SHA_1 ) );
Expand Down

0 comments on commit 2c86c45

Please sign in to comment.