mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
fixed global operator error
This commit is contained in:
parent
bbcedac1db
commit
e7e69523c3
@ -1340,20 +1340,18 @@ def antBuild(which, Build):
|
|||||||
antout = open(antpth, 'a')
|
antout = open(antpth, 'a')
|
||||||
succd = subprocess.call(ant, stdout=antout)
|
succd = subprocess.call(ant, stdout=antout)
|
||||||
antout.close()
|
antout.close()
|
||||||
|
global errorem
|
||||||
|
global attachl
|
||||||
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:
|
||||||
open(chk)
|
open(chk)
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
global errorem
|
|
||||||
global attachl
|
|
||||||
errorem += "DataModel Java build failed.\n"
|
errorem += "DataModel Java build failed.\n"
|
||||||
attachl.append(antpth)
|
attachl.append(antpth)
|
||||||
send_email()
|
send_email()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
elif (succd != 0):
|
elif (succd != 0):
|
||||||
global errorem
|
|
||||||
global attachl
|
|
||||||
errorem += "Autopsy build failed.\n"
|
errorem += "Autopsy build failed.\n"
|
||||||
attachl.append(antpth)
|
attachl.append(antpth)
|
||||||
send_email()
|
send_email()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user