fixed global operator error

This commit is contained in:
Sean-M 2013-02-26 11:30:29 -05:00
parent bbcedac1db
commit e7e69523c3

View File

@ -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()