Learn more about these different git repos.
Other Git URLs
f356ac4
@@ -1,4 +1,4 @@
- #!/usr/bin/python
+ #!/usr/bin/python2
# Koji build daemon
# Copyright (c) 2005-2014 Red Hat, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# coding=utf-8
# command line interface for the Koji build system
from __future__ import absolute_import
from __future__ import print_function
@@ -277,7 +277,7 @@
cd ../plugins
make DESTDIR=$RPM_BUILD_ROOT PYTHON=python3 %{?install_opt} install
# alter python interpreter in koji CLI
- sed -i 's/\#\!\/usr\/bin\/python/\#\!\/usr\/bin\/python3/' $RPM_BUILD_ROOT/usr/bin/koji
+ sed -i 's/\#\!\/usr\/bin\/python2/\#\!\/usr\/bin\/python3/' $RPM_BUILD_ROOT/usr/bin/koji
%endif
%clean
#
# Koji is free software; you can redistribute it and/or
from multiprocessing import Pool
import subprocess
"""Test the __init__.py module"""
# koji-gc: a garbage collection tool for Koji
# Copyright (c) 2007-2014 Red Hat, Inc.
# koji-shadow: a tool to shadow builds between koji instances
# Copyright (c) 2007-2016 Red Hat, Inc.
# Koji Repository Administrator (kojira)
# Koji daemon that runs in a Windows VM and executes commands associated
# with a task.
# Koji virtual machine management daemon
# Copyright (c) 2010-2014 Red Hat, Inc.
Fixes #945
You need to fix the bit in the spec file that adjusts the shebang for python3. With this change it will result in #!/usr/bin/python32, which is not what we want.
#!/usr/bin/python32
rebased onto f356ac4
Commit f356ac4 modifies the sed command in koji.spec to fix the issue that @mikem comments above.
:thumbsup:
Commit 8a24b64 fixes this pull-request
Pull-Request has been merged by mikem
Fixes #945