Commit 5904845a authored by bow's avatar bow
Browse files

Merge branch 'patch-summary_md5' into 'develop'

Patch summary md5

Fix on md5 in summary

See merge request !107
parents 85b9861f 359dcab8
...@@ -84,6 +84,11 @@ trait SummaryQScript extends BiopetQScript { ...@@ -84,6 +84,11 @@ trait SummaryQScript extends BiopetQScript {
def addChecksum(file: File): Unit = { def addChecksum(file: File): Unit = {
if (writeSummary.md5sum && !SummaryQScript.md5sumCache.contains(file)) { if (writeSummary.md5sum && !SummaryQScript.md5sumCache.contains(file)) {
val md5sum = Md5sum(this, file) val md5sum = Md5sum(this, file)
// Need to not write a md5 file outside the outputDir
if (!file.getAbsolutePath.startsWith(outputDir.getAbsolutePath))
md5sum.output = new File(outputDir, ".md5" + file.getAbsolutePath + ".md5")
writeSummary.deps :+= md5sum.output writeSummary.deps :+= md5sum.output
SummaryQScript.md5sumCache += file -> md5sum.output SummaryQScript.md5sumCache += file -> md5sum.output
add(md5sum) add(md5sum)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment