From 36c70e90ae289ec9cd9e0f21a461a126a1790db0173a548301577fe609faf774 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Mon, 2 Nov 2020 18:51:00 +0000 Subject: [PATCH] Accepting request 845469 from home:olh:branches:Cloud:Tools - Remove trailing .sh suffix from bash-completion to make sure az is actually recognized as a command with completions Drop also the string 'completion' from resulting filename OBS-URL: https://build.opensuse.org/request/show/845469 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/azure-cli?expand=0&rev=54 --- azure-cli.changes | 7 +++++++ azure-cli.spec | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/azure-cli.changes b/azure-cli.changes index 86e0ee0..7a09de9 100644 --- a/azure-cli.changes +++ b/azure-cli.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 2 15:15:15 UTC 2020 - olaf@aepfle.de + +- Remove trailing .sh suffix from bash-completion to make sure + az is actually recognized as a command with completions + Drop also the string 'completion' from resulting filename + ------------------------------------------------------------------- Tue Oct 13 11:20:30 UTC 2020 - John Paul Adrian Glaubitz diff --git a/azure-cli.spec b/azure-cli.spec index 5c92642..b7a0114 100644 --- a/azure-cli.spec +++ b/azure-cli.spec @@ -384,7 +384,7 @@ python3 setup.py build %define debug_package %{nil} %else python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib} -install -DTm644 %{buildroot}%{_bindir}/az.completion.sh %{buildroot}%{_datadir}/bash-completion/completions/az.completion.sh +install -DTm644 %{buildroot}%{_bindir}/az.completion.sh %{buildroot}%{_datadir}/bash-completion/completions/az %fdupes %{buildroot}%{python3_sitelib} rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__init__.* rm -rf %{buildroot}%{python3_sitelib}/azure/cli/command_modules/__pycache__ @@ -400,7 +400,7 @@ rm -rf %{buildroot}%{python3_sitelib}/azure/__pycache__ %doc HISTORY.rst README.rst %license LICENSE.txt %{_bindir}/az -%{_datadir}/bash-completion/completions/az.completion.sh +%{_datadir}/bash-completion/completions/az %exclude /usr/bin/az.bat %exclude /usr/bin/az.completion.sh %{python3_sitelib}/azure/cli