threads / patch / 51867

patchcontrib/svn-fe: fix shebang for svnrdump_sim.py

Subject: [PATCH] contrib/svn-fe: fix shebang for svnrdump_sim.py

## tl;dr

One message between Sep 17, 2019 and Sep 17, 2019. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

CHIGOT, CLEMENT· Sep 17, 2019, 14:58 UTC · lore

The shebang for a python script should be "/usr/bin/env python" and not "/usr/bin/python". On some OSes like AIX, python default path is not under "/usr/bin" ("/opt/freeware/bin" for AIX).

Note the main reason behind this change is that AIX rpm will add a dependency on "/usr/bin/python" instead of "/usr/bin/env".

Signed-off-by: Clément Chigot <clement.chigot@atos.net>
---
 contrib/svn-fe/svnrdump_sim.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to contrib/svn-fe/svnrdump_sim.py +1 −1
diff --git a/contrib/svn-fe/svnrdump_sim.py b/contrib/svn-fe/svnrdump_sim.py
index 11ac6f6927..50c6a4f89d 100755
--- a/contrib/svn-fe/svnrdump_sim.py
+++ b/contrib/svn-fe/svnrdump_sim.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 """
 Simulates svnrdump by replaying an existing dump from a file, taking care
 of the specified revision range.
-- 
2.17.1


Clément Chigot
ATOS Bull SAS
1 rue de Provence - 38432 Échirolles - France

← back to recent threads