diff -Nru nala-0.15.0/debian/changelog nala-0.15.1/debian/changelog --- nala-0.15.0/debian/changelog 2024-01-24 05:37:08.000000000 +0000 +++ nala-0.15.1/debian/changelog 2024-01-29 16:13:54.000000000 +0000 @@ -1,3 +1,13 @@ +nala (0.15.1) unstable; urgency=medium + + [ Changes ] + * Update Swedish translations + + [ Bug Fixes ] + * Fix shell completion failing due to help pages + + -- Blake Lee Mon, 29 Jan 2024 10:13:54 -0600 + nala (0.15.0) unstable; urgency=medium [ Changes ] diff -Nru nala-0.15.0/nala/__init__.py nala-0.15.1/nala/__init__.py --- nala-0.15.0/nala/__init__.py 2024-01-24 05:37:08.000000000 +0000 +++ nala-0.15.1/nala/__init__.py 2024-01-29 16:12:29.000000000 +0000 @@ -31,11 +31,11 @@ # pylint: disable=subprocess-run-check -if len(sys.argv) == 1: - sys.exit(run(["man", "nala"]).returncode) - -if len(sys.argv) == 2 and ("--help" in sys.argv or "-h" in sys.argv): - sys.exit(run(["man", "nala"]).returncode) +# Stop this code from running during shell completions +if not os.environ.get("_NALA_COMPLETE"): + # If nala is ran with no arguments so the man page + if len(sys.argv) == 1: + sys.exit(run(["man", "nala"]).returncode) # Set Path as below for termux environment @@ -70,7 +70,7 @@ apt_pkg.init_config() apt_pkg.init_system() -__version__ = "0.15.0" +__version__ = "0.15.1" console = Console() diff -Nru nala-0.15.0/nala/options.py nala-0.15.1/nala/options.py --- nala-0.15.0/nala/options.py 2024-01-24 04:36:48.000000000 +0000 +++ nala-0.15.1/nala/options.py 2024-01-29 16:11:34.000000000 +0000 @@ -376,7 +376,7 @@ arguments = Arguments() -nala = typer.Typer(add_completion=True, no_args_is_help=True) +nala = typer.Typer(add_completion=True) history_typer = typer.Typer(name="history") nala.add_typer(history_typer) @@ -690,9 +690,7 @@ @nala.command("help", hidden=True) -@nala.callback( - context_settings=CONTEXT_SETTINGS, no_args_is_help=True, invoke_without_command=True -) +@nala.callback(context_settings=CONTEXT_SETTINGS, invoke_without_command=True) # pylint: disable=unused-argument def global_options( ctx: typer.Context, diff -Nru nala-0.15.0/nala_build.py nala-0.15.1/nala_build.py --- nala-0.15.0/nala_build.py 2024-01-24 04:41:20.000000000 +0000 +++ nala-0.15.1/nala_build.py 2024-01-29 16:11:34.000000000 +0000 @@ -25,7 +25,7 @@ self.locale_dir = f"{build_dir}{USR}/share/locale" -nala_app = typer.Typer(add_completion=False, no_args_is_help=True) +nala_app = typer.Typer(add_completion=False) def check_root(operation: str) -> None: diff -Nru nala-0.15.0/po/sv.po nala-0.15.1/po/sv.po --- nala-0.15.0/po/sv.po 2024-01-24 05:24:02.000000000 +0000 +++ nala-0.15.1/po/sv.po 2024-01-29 16:11:34.000000000 +0000 @@ -1,4 +1,3 @@ - msgid "" msgstr "" "Project-Id-Version: Nala\n" @@ -81,11 +80,11 @@ #: nala/nala.py:253 msgid "Upgrade the system by removing/installing/upgrading packages." -msgstr "" +msgstr "Uppgradera systemet genom att ta bort/installera/uppgradera paket" #: nala/nala.py:255 msgid "Upgrade the system by upgrading packages only." -msgstr "" +msgstr "Uppgradera systemet genom att uppgradera paket endast." #: nala/nala.py:260 msgid "Specify packages to exclude during upgrade. Accepts glob*" @@ -982,7 +981,7 @@ #: nala/options.py:502 msgid "Force color or no color." -msgstr "" +msgstr "Tvinga färg eller ingen färg" #: nala/options.py:508 msgid "Toggle updating the package list." diff -Nru nala-0.15.0/pyproject.toml nala-0.15.1/pyproject.toml --- nala-0.15.0/pyproject.toml 2024-01-24 05:37:08.000000000 +0000 +++ nala-0.15.1/pyproject.toml 2024-01-29 16:12:21.000000000 +0000 @@ -1,6 +1,6 @@ [tool.poetry] name = "nala" -version = "0.15.0" +version = "0.15.1" description = "Commandline frontend for the apt package manager" authors = [ "Blake Lee ",