mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +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
|
||||
def do_git(tag, tag_dir):
|
||||
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],
|
||||
stdout=subprocess.PIPE)
|
||||
printt("Checking out tag " + tag + "...")
|
||||
@ -719,8 +719,9 @@ def do_git(tag, tag_dir):
|
||||
stdout=subprocess.PIPE,
|
||||
cwd=tag_dir)
|
||||
return True
|
||||
except:
|
||||
print("Error cloning and checking out Autopsy.")
|
||||
except Exception as ex:
|
||||
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.")
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user