Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
d7c60cc3
Commit
d7c60cc3
authored
Jan 19, 2015
by
Peter van 't Hof
Browse files
Fix on md5 check
parent
b3ae6caf
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala
View file @
d7c60cc3
...
...
@@ -99,14 +99,13 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
val
temp
=
MessageDigest
.
getInstance
(
"MD5"
).
digest
(
bytes
).
map
(
"%02X"
.
format
(
_
)).
mkString
.
toLowerCase
BiopetCommandLineFunctionTrait
.
executableMd5Cache
+=
executable
->
temp
}
addJobReportBinding
(
"md5sum_exe"
,
BiopetCommandLineFunctionTrait
.
executableMd5Cache
(
executable
))
}
catch
{
case
ioe
:
java.io.IOException
=>
logger
.
warn
(
"Could not use 'which', check on executable skipped: "
+
ioe
)
}
}
else
{
addJobReportBinding
(
"md5sum_exe"
,
BiopetCommandLineFunctionTrait
.
executableMd5Cache
(
executable
))
}
val
md5
=
BiopetCommandLineFunctionTrait
.
executableMd5Cache
(
executable
)
if
(
md5
==
null
)
addJobReportBinding
(
"md5sum_exe"
,
md5
)
else
addJobReportBinding
(
"md5sum_exe"
,
"None"
)
}
final
protected
def
preCmdInternal
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment