Skip to content
Snippets Groups Projects
Commit 4307884f authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

update exit codes

parent 676a76b2
No related branches found
No related tags found
1 merge request!82Remove cmd
This commit is part of merge request !82. Comments created here will be created in the context of that merge request.
......@@ -1096,7 +1096,7 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
logging.warning(
"Please specify package_sets to remove, or 'ALL' to remove all toolchains"
)
sys.exit(1)
sys.exit(50) # TODO document this code.
# 2nd case: remove the entire release for microarchitecture
dir_to_remove = root_dir / mpsd_release / get_native_microarchitecture()
if "ALL" in package_sets:
......@@ -1108,7 +1108,7 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
if not force_remove:
logging.warning("do you want to continue? [y/n]")
if input().lower() != "y":
sys.exit(50) # TODO document this code.
sys.exit(60) # TODO document this code.
folders_to_remove = os.listdir(dir_to_remove)
# skip logs folder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment