Hi,

attached patch fixes few python2 non-explicit shebangs that lurked into the 
codebase.

Tomas
From ce5938cbf3df4b9ff6da08ebb114c342e763cc22 Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@redhat.com>
Date: Thu, 22 Jan 2015 12:47:13 +0100
Subject: [PATCH] ipapython: Fix incorrect python shebangs

Make sure shebangs explicitly reference python2.
---
 daemons/dnssec/ipa-dnskeysync-replica | 2 +-
 daemons/dnssec/ipa-dnskeysyncd        | 2 +-
 daemons/dnssec/ipa-ods-exporter       | 2 +-
 ipapython/dnssec/abshsm.py            | 1 -
 ipapython/dnssec/bindmgr.py           | 1 -
 ipapython/dnssec/keysyncer.py         | 1 -
 ipapython/dnssec/ldapkeydb.py         | 1 -
 ipapython/dnssec/localhsm.py          | 2 +-
 ipapython/dnssec/odsmgr.py            | 2 +-
 ipapython/dnssec/syncrepl.py          | 1 -
 ipapython/dnssec/temp.py              | 1 -
 ipapython/ipap11helper/setup.py       | 2 +-
 ipapython/p11helper.py                | 1 -
 13 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/daemons/dnssec/ipa-dnskeysync-replica b/daemons/dnssec/ipa-dnskeysync-replica
index 23c95a01c3e4f0f6527e4fc449244dc487f04119..d04f360e04ee018dcdd1ba9b2ca42b1844617af9 100755
--- a/daemons/dnssec/ipa-dnskeysync-replica
+++ b/daemons/dnssec/ipa-dnskeysync-replica
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/daemons/dnssec/ipa-dnskeysyncd b/daemons/dnssec/ipa-dnskeysyncd
index c7475bd65ba7ad38af99f2e8c3ae3bc8837f2c9b..b78f3539863a4a81c9d144a26e246b74d6360d41 100755
--- a/daemons/dnssec/ipa-dnskeysyncd
+++ b/daemons/dnssec/ipa-dnskeysyncd
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/daemons/dnssec/ipa-ods-exporter b/daemons/dnssec/ipa-ods-exporter
index 228589151387b6d1ab6df252c587234edf529eaa..dc1851d3a34bb09c1a87c86d101b11afe35e49fe 100755
--- a/daemons/dnssec/ipa-ods-exporter
+++ b/daemons/dnssec/ipa-ods-exporter
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/dnssec/abshsm.py b/ipapython/dnssec/abshsm.py
index cc8119865e3f24d1328f2312c2e2fabcaf0856aa..80292e5a727e03ca805c866790ef9e628a4973d5 100644
--- a/ipapython/dnssec/abshsm.py
+++ b/ipapython/dnssec/abshsm.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/dnssec/bindmgr.py b/ipapython/dnssec/bindmgr.py
index 9c831c241d53ec3dd996b8fd8c3106a92998deb8..2c6781609594fa27812af3a01d16318198a3e120 100644
--- a/ipapython/dnssec/bindmgr.py
+++ b/ipapython/dnssec/bindmgr.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/dnssec/keysyncer.py b/ipapython/dnssec/keysyncer.py
index 1b27573267fff941393360b5a589146d722d098b..837602fb4e7c74a7099a351c727d1435b5645706 100644
--- a/ipapython/dnssec/keysyncer.py
+++ b/ipapython/dnssec/keysyncer.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/dnssec/ldapkeydb.py b/ipapython/dnssec/ldapkeydb.py
index e2e58f8809e2e604dff4ecf0122d866f0986dee0..71c0a95a39b1b460178d0b853ed26bf2cfe5bda1 100644
--- a/ipapython/dnssec/ldapkeydb.py
+++ b/ipapython/dnssec/ldapkeydb.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/dnssec/localhsm.py b/ipapython/dnssec/localhsm.py
index de49641b0a1f789a375f67937d4701901372a4b5..6176fbf0054e0c267dc5f61255b4c1192ff7d1fb 100755
--- a/ipapython/dnssec/localhsm.py
+++ b/ipapython/dnssec/localhsm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/dnssec/odsmgr.py b/ipapython/dnssec/odsmgr.py
index a91b6c553d9ab7364258bd1ca24d236a3994ec6d..91c7fd1104330e26587f6eaac662f43bfb60e822 100644
--- a/ipapython/dnssec/odsmgr.py
+++ b/ipapython/dnssec/odsmgr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/dnssec/syncrepl.py b/ipapython/dnssec/syncrepl.py
index 2f657f599e572f4e29bfa87a5d0a2a468b79f207..595582cb876b8af78492a2c3e36bd228ff6ca97b 100644
--- a/ipapython/dnssec/syncrepl.py
+++ b/ipapython/dnssec/syncrepl.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 # -*- coding: utf-8 -*-
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
diff --git a/ipapython/dnssec/temp.py b/ipapython/dnssec/temp.py
index 23ee377bece178ecfb1a0cdaa1168d03fb0b3177..e97d3a0b8a9cd3ca7e808cc198de13590ef420d1 100644
--- a/ipapython/dnssec/temp.py
+++ b/ipapython/dnssec/temp.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/ipap11helper/setup.py b/ipapython/ipap11helper/setup.py
index e8e824a3386db7653b33d539a05927b8de9f029d..9743ac229f0bc1734a924a66eedf87501305e759 100644
--- a/ipapython/ipap11helper/setup.py
+++ b/ipapython/ipap11helper/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
diff --git a/ipapython/p11helper.py b/ipapython/p11helper.py
index f084855f42f0caf8b5c7a964b1ffc8c52a5fa186..82e7bff19a57e28132a9d3d418517fe74e961b95 100644
--- a/ipapython/p11helper.py
+++ b/ipapython/p11helper.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #
 # Copyright (C) 2014  FreeIPA Contributors see COPYING for license
 #
-- 
2.1.0

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to