Skip to content

Commit

Permalink
1.x: Fix repoquery subcommand for Python 3.11/3.12 (#3170)
Browse files Browse the repository at this point in the history
* 1.x: Fix repoquery subcommand for Python 3.11/3.12

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>

* 1.x: Return exit code 1 for non-supported commands

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>

---------

Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
  • Loading branch information
mbargull authored Feb 5, 2024
1 parent 8c739ea commit 98e45d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mamba/mamba/mamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ def format_param(nm, val):
exit_code = update(args, parser)
elif relative_mod == ".main_init":
exit_code = shell_init(args)
elif relative_mod in (".main_repoquery", "repoquery"):
elif relative_mod in (".main_repoquery", ".repoquery"):
exit_code = repoquery(args, parser)
else:
print(
Expand All @@ -778,7 +778,7 @@ def format_param(nm, val):
" deactivate are supported through mamba."
)

return 0
return 1
return exit_code


Expand Down

0 comments on commit 98e45d1

Please sign in to comment.