diff --git a/bash-repl.patch b/bash-repl.patch new file mode 100644 index 0000000..6cdbc2e --- /dev/null +++ b/bash-repl.patch @@ -0,0 +1,13 @@ +Index: argcomplete-3.0.8/test/test.py +=================================================================== +--- argcomplete-3.0.8.orig/test/test.py ++++ argcomplete-3.0.8/test/test.py +@@ -65,7 +65,7 @@ def _repl_sh(command, args, non_printabl + + + def bash_repl(command="bash"): +- bashrc = os.path.join(os.path.dirname(pexpect.__file__), "replwrap", "bashrc.sh") ++ bashrc = os.path.join(os.path.dirname(pexpect.__file__), "bashrc.sh") + sh = _repl_sh(command, ["--rcfile", bashrc], non_printable_insert="\\[\\]") + return sh + diff --git a/python-argcomplete.changes b/python-argcomplete.changes index f4f7e07..f9b8478 100644 --- a/python-argcomplete.changes +++ b/python-argcomplete.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 30 16:02:49 UTC 2023 - Andreas Schwab + +- bash-repl.patch: Use correct place for auxiliary bashrc.sh file from pexpect + ------------------------------------------------------------------- Fri May 5 11:23:29 UTC 2023 - Daniel Garcia diff --git a/python-argcomplete.spec b/python-argcomplete.spec index 035cd12..9575a3d 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -30,6 +30,8 @@ Source: https://files.pythonhosted.org/packages/source/a/argcomplete/arg Patch1: trim-test-deps.patch # Don't fail the test suite when zsh is not available Patch2: without_zsh.patch +# Use correct place for auxiliary bashrc.sh file from pexpect +Patch3: bash-repl.patch BuildRequires: %{python_module coverage} BuildRequires: %{python_module pexpect} BuildRequires: %{python_module pip}