From 348e8d55799df8e6e48ad26ce14293b0dc76ecc5 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 30 Apr 2020 12:13:51 -0700 Subject: [PATCH] koji-sidetag-cleanup needs to be python2 on el6/python2 only places Signed-off-by: Kevin Fenzi --- koji.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koji.spec b/koji.spec index f2ede78..9cd33a5 100644 --- a/koji.spec +++ b/koji.spec @@ -433,6 +433,8 @@ exit 1 # python2 build %if 0%{py2_support} > 1 make DESTDIR=$RPM_BUILD_ROOT PYTHON=%{__python2} %{?install_opt} install +# koji-sidetag-cleanup has a python3 shbang, fix for python2 +sed -i 's|#!/usr/bin/python3|#!/usr/bin/python2|' $RPM_BUILD_ROOT/usr/sbin/koji-sidetag-cleanup %else %if 0%{py2_support} for d in koji cli plugins ; do