mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
add debug info to update_version when it fails
This commit is contained in:
parent
3df1ca1062
commit
681fd812b3
@ -711,7 +711,7 @@ def handleRemoveReadonly(func, path, exc):
|
|||||||
# Run git clone and git checkout for the tag
|
# Run git clone and git checkout for the tag
|
||||||
def do_git(tag, tag_dir):
|
def do_git(tag, tag_dir):
|
||||||
try:
|
try:
|
||||||
printt("Cloning Autopsy (this could take a while)...")
|
printt("Cloning Autopsy tag " + tag + " into dir " + tag_dir + " (this could take a while)...")
|
||||||
subprocess.call(["git", "clone", "https://github.com/sleuthkit/autopsy.git", tag_dir],
|
subprocess.call(["git", "clone", "https://github.com/sleuthkit/autopsy.git", tag_dir],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
printt("Checking out tag " + tag + "...")
|
printt("Checking out tag " + tag + "...")
|
||||||
@ -719,8 +719,9 @@ def do_git(tag, tag_dir):
|
|||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
cwd=tag_dir)
|
cwd=tag_dir)
|
||||||
return True
|
return True
|
||||||
except:
|
except Exception as ex:
|
||||||
print("Error cloning and checking out Autopsy.")
|
print("Error cloning and checking out Autopsy: ", sys.exc_info()[0])
|
||||||
|
print ex
|
||||||
print("The terminal you are using most likely does not recognize git commands.")
|
print("The terminal you are using most likely does not recognize git commands.")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user