From f7af62ecd893bd977cebc4e6586f1e524b36561b Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 24 Sep 2018 14:12:45 -0400 Subject: python3: assume python3 unless building _packages_ on sys without py3 The jenkins release-new job runs on a CentOS 7 box, which does not have python3. As a result it runs (autogen.sh and) configure before producing the dist tar file, converting all the python3 shebangs to python2 shebangs in the dist tar file. Then when that tar file is "carried" to, e.g. Fedora koji build system to build packages, the shebangs are incorrect, despite having originally been correct in the git repo. Change-Id: I5154baba3f6d29d3c4823bafc2b57abecbf90e5b updates: #411 Signed-off-by: Kaleb S. KEITHLEY --- tests/utils/changelogparser.py | 1 - tests/utils/create-files.py | 1 - tests/utils/getfattr.py | 1 - tests/utils/gfid-access.py | 1 - tests/utils/pidof.py | 1 - tests/utils/setfattr.py | 1 - 6 files changed, 6 deletions(-) (limited to 'tests/utils') diff --git a/tests/utils/changelogparser.py b/tests/utils/changelogparser.py index e8b8c6d6a6a..e8e252d195f 100644 --- a/tests/utils/changelogparser.py +++ b/tests/utils/changelogparser.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Why? diff --git a/tests/utils/create-files.py b/tests/utils/create-files.py index 6b72a853509..b2a19610d63 100755 --- a/tests/utils/create-files.py +++ b/tests/utils/create-files.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # This script was developed by Vijaykumar Koppad (vkoppad@redhat.com) # The latest version of this script can found at diff --git a/tests/utils/getfattr.py b/tests/utils/getfattr.py index e2357901a93..3eb40e1c887 100755 --- a/tests/utils/getfattr.py +++ b/tests/utils/getfattr.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 from __future__ import print_function import os diff --git a/tests/utils/gfid-access.py b/tests/utils/gfid-access.py index 377c504270f..556d2b4c65b 100755 --- a/tests/utils/gfid-access.py +++ b/tests/utils/gfid-access.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Copyright (c) 2011-2014 Red Hat, Inc. # This file is part of GlusterFS. diff --git a/tests/utils/pidof.py b/tests/utils/pidof.py index 19deeb1fe21..4b7071c0a48 100755 --- a/tests/utils/pidof.py +++ b/tests/utils/pidof.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 from __future__ import print_function import sys diff --git a/tests/utils/setfattr.py b/tests/utils/setfattr.py index 364ad8b6966..8b7b6abacc0 100755 --- a/tests/utils/setfattr.py +++ b/tests/utils/setfattr.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 import os import sys -- cgit