From b558aabb5c7f434229be6504790cac3bb227664e Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Jan 10 2019 09:21:47 +0000 Subject: Add completion for rpm -q --licensefiles Resolves: #1578811 --- diff --git a/bash-completion-rpm-license.patch b/bash-completion-rpm-license.patch new file mode 100644 index 0000000..e4bf17a --- /dev/null +++ b/bash-completion-rpm-license.patch @@ -0,0 +1,13 @@ +diff --git a/completions/rpm b/completions/rpm +index 6b4e66f..c3eed54 100644 +--- a/completions/rpm ++++ b/completions/rpm +@@ -151,7 +151,7 @@ _rpm() + --fileprovide --filerequire --filesbypkg --info --list + --obsoletes --pipe --provides --queryformat= --requires + --scripts --suggests --triggers --xml --recommends +- --supplements --filetriggers" ++ --supplements --filetriggers --licensefiles" + + if [[ ${words[@]} == *\ -@(*([^ -])f|-file )* ]]; then + # -qf completion diff --git a/bash-completion.spec b/bash-completion.spec index 5215b6a..a3c246d 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -5,7 +5,7 @@ Name: bash-completion Version: 2.8 -Release: 4%{?dist} +Release: 5%{?dist} Epoch: 1 Summary: Programmable completion for Bash @@ -18,6 +18,9 @@ Patch0: %{name}-1.99-noblacklist.patch # Remove while rebasing to bash-completion-2.9 Patch1: %{name}-2.9-override-completions.patch +# Remove while rebasing to bash-completion-2.9 +Patch2: %{name}-rpm-license.patch + BuildArch: noarch %if %{with tests} BuildRequires: dejagnu @@ -93,6 +96,10 @@ make -C completions check %changelog +* Thu Jan 10 2019 Siteshwar Vashisht - 1:2.8-5 +- Add completion for rpm -q --licensefiles + Resolves: #1578811 + * Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1:2.8-4 - Use C.UTF-8 locale See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot