#3044 fix shebang of kojivmd for py2
Closed 2 years ago by julian8628. Opened 2 years ago by julian8628.
julian8628/koji vm-shebang  into  master

file modified
+5
@@ -409,6 +409,11 @@ 

  %else

  %if 0%{py2_support}

  make DESTDIR=$RPM_BUILD_ROOT PYTHON=%{__python2} install

+ # alter python interpreter in koji bins

+ scripts='%{_bindir}/koji %{_sbindir}/kojivmd'

+ for fn in $scripts ; do

+     sed -i 's|#!/usr/bin/python3|#!/usr/bin/python2|' $RPM_BUILD_ROOT$fn

+ done

  %endif

  %endif

  

Code is already py3 and will not work under py2.

Pull-Request has been closed by julian8628

2 years ago
Metadata