This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.4.0
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.4.0 by this push:
new e9e5f97 Issue 50758 - Enable CLI arg completion
e9e5f97 is described below
commit e9e5f97316e4ebcb6979353911a249dda1e6abdf
Author: Mark Reynolds <mreynolds(a)redhat.com>
AuthorDate: Tue Dec 3 11:17:06 2019 -0500
Issue 50758 - Enable CLI arg completion
Description: We need to make sure the bash_completion package is installed,
and that we call activate-global-python-argcomplete in %post
relates:
https://pagure.io/389-ds-base/issue/50758
Reviewed by: mhonek, and firstyear(Thanks!)
---
rpm/389-ds-base.spec.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/rpm/389-ds-base.spec.in b/rpm/389-ds-base.spec.in
index 8b014b8..a46fd92 100644
--- a/rpm/389-ds-base.spec.in
+++ b/rpm/389-ds-base.spec.in
@@ -299,6 +299,8 @@ Requires: python%{python3_pkgversion}-pyasn1-modules
Requires: python%{python3_pkgversion}-dateutil
Requires: python%{python3_pkgversion}-argcomplete
Requires: python%{python3_pkgversion}-libselinux
+Requires: python%{python3_pkgversion}-setuptools
+Requires: bash-completion
%{?python_provide:%python_provide python%{python3_pkgversion}-lib389}
%description -n python%{python3_pkgversion}-lib389
@@ -466,6 +468,9 @@ if ! make DESTDIR="$RPM_BUILD_ROOT" check; then cat
./test-suite.log && false; f
rm -rf $RPM_BUILD_ROOT
%post
+# activate arg completion for CLI tools
+activate-global-python-argcomplete > /dev/null
+
if [ -n "$DEBUGPOSTTRANS" ] ; then
output=$DEBUGPOSTTRANS
output2=${DEBUGPOSTTRANS}.upgrade
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.