Fix Bash completion

- There was a superfluous }
 - Bash functions cannot have dots in them

Resolves: RHEL-99083
This commit is contained in:
Miro Hrončok 2025-06-25 14:11:42 +02:00
parent 38293dfc52
commit 0b8fc2bee4

View File

@ -13,7 +13,7 @@
Name: python%{python3_pkgversion}-%{srcname}
Version: %{base_version}%{?prerel:~%{prerel}}
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A tool for installing and managing Python packages
# We bundle a lot of libraries with pip, which itself is under MIT license.
@ -231,8 +231,8 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
> %{buildroot}%{bashcompdir}/pip%{python3_pkgversion}
# Make bash completion apply to all the 5 symlinks we install
sed -i -e "s/^\\(complete.*\\) pip\$/\\1 pip{,-}%{python3_pkgversion}}/" \
-e s/_pip_completion/_pip%{python3_pkgversion}_completion/ \
sed -i -e "s/^\\(complete.*\\) pip\$/\\1 pip{,-}%{python3_pkgversion}/" \
-e s/_pip_completion/_pip%{python3_version_nodots}_completion/ \
%{buildroot}%{bashcompdir}/pip%{python3_pkgversion}
@ -294,6 +294,10 @@ pytest_k='not completion'
%{python_wheel_dir}/%{python_wheel_name}
%changelog
* Wed Jun 25 2025 Miro Hrončok <mhroncok@redhat.com> - 23.2.1-5
- Fix Bash completion
Resolves: RHEL-99083
* Fri Feb 16 2024 Charalampos Stratakis <cstratak@redhat.com> - 23.2.1-4
- Use tarfile.data_filter for extracting (CVE-2007-4559, PEP-721, PEP-706)
Resolves: RHEL-25737