mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Added argument to ignore new images.
This commit is contained in:
parent
b3e0e59462
commit
b42b592b07
@ -72,6 +72,7 @@ class Args:
|
|||||||
self.contin = False
|
self.contin = False
|
||||||
self.gold_creation = False
|
self.gold_creation = False
|
||||||
self.daily = False
|
self.daily = False
|
||||||
|
self.fr = False
|
||||||
|
|
||||||
def parse(self):
|
def parse(self):
|
||||||
global nxtproc
|
global nxtproc
|
||||||
@ -140,6 +141,9 @@ class Args:
|
|||||||
elif arg == "-d" or arg == "--daily":
|
elif arg == "-d" or arg == "--daily":
|
||||||
printout("Running daily")
|
printout("Running daily")
|
||||||
self.daily = True
|
self.daily = True
|
||||||
|
elif arg == "-fr" or arg == "--forcerun":
|
||||||
|
printout("Not downloading new images")
|
||||||
|
self.fr = True
|
||||||
else:
|
else:
|
||||||
printout(usage())
|
printout(usage())
|
||||||
return False
|
return False
|
||||||
@ -1668,15 +1672,6 @@ def main():
|
|||||||
global daycount
|
global daycount
|
||||||
global redo
|
global redo
|
||||||
global passed
|
global passed
|
||||||
antin = ["ant"]
|
|
||||||
antin.append("-f")
|
|
||||||
antin.append(os.path.join("..","..","build.xml"))
|
|
||||||
antin.append("test-download-imgs")
|
|
||||||
if SYS is OS.CYGWIN:
|
|
||||||
subprocess.call(antin)
|
|
||||||
elif SYS is OS.WIN:
|
|
||||||
theproc = subprocess.Popen(antin, shell = True, stdout=subprocess.PIPE)
|
|
||||||
theproc.communicate()
|
|
||||||
daycount = 0
|
daycount = 0
|
||||||
failedbool = False
|
failedbool = False
|
||||||
redo = False
|
redo = False
|
||||||
@ -1685,6 +1680,16 @@ def main():
|
|||||||
database = Database()
|
database = Database()
|
||||||
printout("")
|
printout("")
|
||||||
args = Args()
|
args = Args()
|
||||||
|
if(not args.fr):
|
||||||
|
antin = ["ant"]
|
||||||
|
antin.append("-f")
|
||||||
|
antin.append(os.path.join("..","..","build.xml"))
|
||||||
|
antin.append("test-download-imgs")
|
||||||
|
if SYS is OS.CYGWIN:
|
||||||
|
subprocess.call(antin)
|
||||||
|
elif SYS is OS.WIN:
|
||||||
|
theproc = subprocess.Popen(antin, shell = True, stdout=subprocess.PIPE)
|
||||||
|
theproc.communicate()
|
||||||
attachl = []
|
attachl = []
|
||||||
passed = False
|
passed = False
|
||||||
# The arguments were given wrong:
|
# The arguments were given wrong:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user