Use python2 for ipa cli

Switch 'ipa' command to py3 has been done prematurely, this commit sets python2 as interpreter for ipa cli.

https://fedorahosted.org/freeipa/ticket/5638

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti 2016-06-14 11:41:25 +02:00
parent ee08f3e237
commit 5760cc9182

View File

@ -739,6 +739,11 @@ make client-install DESTDIR=%{buildroot}
(cd ipaclient && %{__python3} setup.py install --root %{buildroot})
%endif # with_python3
# Switch shebang of /usr/bin/ipa
# XXX: ipa cli is not stable enough for enabling py3 support, keep it in py2
# in any case
sed -i -e'1s/python\(3\|$\)/python2/' %{buildroot}%{_bindir}/ipa
%find_lang %{gettext_domain}
mkdir -p %{buildroot}%{_usr}/share/ipa