mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
added check for autopsy ant build
This commit is contained in:
parent
cea2c49965
commit
ceb3232d0a
@ -1329,7 +1329,7 @@ def antBuild(which, Build):
|
|||||||
ant.append("dist")
|
ant.append("dist")
|
||||||
antpth = make_local_path(case.output_dir, "ant" + which + "Output.txt")
|
antpth = make_local_path(case.output_dir, "ant" + which + "Output.txt")
|
||||||
antout = open(antpth, 'a')
|
antout = open(antpth, 'a')
|
||||||
subprocess.call(ant, stdout=antout)
|
succd = subprocess.call(ant, stdout=antout)
|
||||||
if which == "datamodel":
|
if which == "datamodel":
|
||||||
chk = os.path.join("..", "..", "..","sleuthkit", "bindings", "java", "dist", "TSK_DataModel.jar")
|
chk = os.path.join("..", "..", "..","sleuthkit", "bindings", "java", "dist", "TSK_DataModel.jar")
|
||||||
try:
|
try:
|
||||||
@ -1341,6 +1341,13 @@ def antBuild(which, Build):
|
|||||||
attachl.append(antpth)
|
attachl.append(antpth)
|
||||||
send_email()
|
send_email()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
elif (succd != 0):
|
||||||
|
global errorem
|
||||||
|
global attachl
|
||||||
|
errorem += "Autopsy build failed.\n"
|
||||||
|
attachl.append(antpth)
|
||||||
|
send_email()
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user