79 lines
2.7 KiB
Diff
79 lines
2.7 KiB
Diff
From 5711508032b5f280c56eb983392b58ca66de6124 Mon Sep 17 00:00:00 2001
|
|
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
|
Date: Fri, 22 Feb 2019 09:25:26 -0500
|
|
Subject: [PATCH] glusterfind: revert shebangs to #!/usr/bin/python3
|
|
|
|
Using #!/usr/bin/env python is illegal in Fedora and RHEL packaging.
|
|
(Debian and SUSE packaging will complain about it too but don't
|
|
enforce it like Fedora packaging does. Yet.)
|
|
|
|
We went through a giant exercise fixing these once already.
|
|
|
|
The python needs to be python2/python3 clean. There is a build
|
|
scriptlet that converts the shebangs back to /usr/bin/python on rhel7.
|
|
|
|
Change-Id: If208a2557f7e5d727cda98c27905e249cf485d5b
|
|
updates: bz#1193929
|
|
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
---
|
|
tools/glusterfind/glusterfind.in | 2 +-
|
|
tools/glusterfind/src/brickfind.py | 2 +-
|
|
tools/glusterfind/src/changelog.py | 2 +-
|
|
tools/glusterfind/src/main.py | 2 +-
|
|
tools/glusterfind/src/nodeagent.py | 2 +-
|
|
5 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/tools/glusterfind/glusterfind.in b/tools/glusterfind/glusterfind.in
|
|
index 569bf4121..ca154b625 100644
|
|
--- a/tools/glusterfind/glusterfind.in
|
|
+++ b/tools/glusterfind/glusterfind.in
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
|
|
# Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com/>
|
|
# This file is part of GlusterFS.
|
|
diff --git a/tools/glusterfind/src/brickfind.py b/tools/glusterfind/src/brickfind.py
|
|
index 1e72c00e5..73b635018 100644
|
|
--- a/tools/glusterfind/src/brickfind.py
|
|
+++ b/tools/glusterfind/src/brickfind.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com/>
|
|
diff --git a/tools/glusterfind/src/changelog.py b/tools/glusterfind/src/changelog.py
|
|
index 62669e950..40c381b59 100644
|
|
--- a/tools/glusterfind/src/changelog.py
|
|
+++ b/tools/glusterfind/src/changelog.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com/>
|
|
diff --git a/tools/glusterfind/src/main.py b/tools/glusterfind/src/main.py
|
|
index 1145fc1e2..cc5a86f27 100644
|
|
--- a/tools/glusterfind/src/main.py
|
|
+++ b/tools/glusterfind/src/main.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com/>
|
|
diff --git a/tools/glusterfind/src/nodeagent.py b/tools/glusterfind/src/nodeagent.py
|
|
index 2ddc77aff..679daa6fa 100644
|
|
--- a/tools/glusterfind/src/nodeagent.py
|
|
+++ b/tools/glusterfind/src/nodeagent.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com/>
|
|
--
|
|
2.20.1
|
|
|