mirror of
https://github.com/jlengrand/jreleaser.git
synced 2026-03-10 08:31:24 +00:00
[checksum] Fix format of aggregated checksum file. Fixes #322
This commit is contained in:
@@ -52,7 +52,7 @@ public class Checksum {
|
||||
for (Algorithm algorithm : context.getModel().getChecksum().getAlgorithms()) {
|
||||
readHash(context, algorithm, artifact);
|
||||
List<String> list = checksums.computeIfAbsent(algorithm, k -> new ArrayList<>());
|
||||
list.add(artifact.getHash(algorithm) + " " + artifact.getEffectivePath(context).getFileName());
|
||||
list.add(artifact.getHash(algorithm) + " " + artifact.getEffectivePath(context).getFileName());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,8 +62,7 @@ public class Checksum {
|
||||
for (Algorithm algorithm : context.getModel().getChecksum().getAlgorithms()) {
|
||||
readHash(context, distribution, algorithm, artifact);
|
||||
List<String> list = checksums.computeIfAbsent(algorithm, k -> new ArrayList<>());
|
||||
list.add(artifact.getHash(algorithm) + " " + distribution.getName() + "/" +
|
||||
artifact.getEffectivePath(context).getFileName());
|
||||
list.add(artifact.getHash(algorithm) + " " + artifact.getEffectivePath(context).getFileName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user