#946 force using python2 to run script
Merged 5 years ago by mikem. Opened 5 years ago by franzh.
franzh/koji issue945  into  master

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  # Koji build daemon

  # Copyright (c) 2005-2014 Red Hat, Inc.

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  # 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

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  # coding=utf-8

  

  # command line interface for the Koji build system

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  from __future__ import absolute_import

  from __future__ import print_function

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  from __future__ import absolute_import

  from __future__ import print_function

file modified
+1 -1
@@ -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

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  # Copyright (c) 2005-2014 Red Hat, Inc.

  #

  #    Koji is free software; you can redistribute it and/or

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  from multiprocessing import Pool

  import subprocess

@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  # coding=utf-8

  

  """Test the __init__.py module"""

@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  """Test the __init__.py module"""

  

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  # koji-gc: a garbage collection tool for Koji

  # Copyright (c) 2007-2014 Red Hat, Inc.

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  # koji-shadow: a tool to shadow builds between koji instances

  # Copyright (c) 2007-2016 Red Hat, Inc.

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  # Koji Repository Administrator (kojira)

  # Copyright (c) 2005-2014 Red Hat, Inc.

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  # Koji daemon that runs in a Windows VM and executes commands associated

  # with a task.

file modified
+1 -1
@@ -1,4 +1,4 @@ 

- #!/usr/bin/python

+ #!/usr/bin/python2

  

  # Koji virtual machine management daemon

  # Copyright (c) 2010-2014 Red Hat, Inc.