Package: firewalld / 0.4.4.2-1

Switch-to-python3.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Laurent Bigonville <bigon@debian.org>
Date: Fri, 20 Nov 2015 01:18:04 +0100
Subject: Switch to python3

---
 config/lockdown-whitelist.xml | 2 +-
 fix_python_shebang.sh         | 2 +-
 src/gtk3_chooserbutton.py     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/lockdown-whitelist.xml b/config/lockdown-whitelist.xml
index 631ca72..65c03c5 100644
--- a/config/lockdown-whitelist.xml
+++ b/config/lockdown-whitelist.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <whitelist>
-  <command name="/usr/bin/python -Es /usr/bin/firewall-config"/>
+  <command name="/usr/bin/python3 -Es /usr/bin/firewall-config"/>
   <selinux context="system_u:system_r:NetworkManager_t:s0"/>
   <selinux context="system_u:system_r:virtd_t:s0-s0:c0.c1023"/>
   <user id="0"/>
diff --git a/fix_python_shebang.sh b/fix_python_shebang.sh
index 8a0430c..acb6da2 100755
--- a/fix_python_shebang.sh
+++ b/fix_python_shebang.sh
@@ -1,3 +1,3 @@
 #!/bin/bash
 
-sed -e "s@^#\!/usr/bin/python\$@#\!/usr/bin/python -Es@" -i $@
+sed -e "s@^#\!/usr/bin/python\$@#\!/usr/bin/python3 -Es@" -i $@
diff --git a/src/gtk3_chooserbutton.py b/src/gtk3_chooserbutton.py
index 85cab68..74d973a 100755
--- a/src/gtk3_chooserbutton.py
+++ b/src/gtk3_chooserbutton.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -Es
+#!/usr/bin/python3 -Es
 # -*- coding: utf-8 -*-
 #
 # Copyright (C) 2008,2012 Red Hat, Inc.