mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
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:
parent
ee08f3e237
commit
5760cc9182
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user