File: fix-python-shebangs.patch

package info (click to toggle)
kannel 1.4.5-22
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,284 kB
  • sloc: ansic: 105,659; sh: 32,211; xml: 20,360; php: 1,103; perl: 711; makefile: 583; yacc: 548; awk: 133; python: 122; javascript: 27; pascal: 3
file content (46 lines) | stat: -rw-r--r-- 943 bytes parent folder | 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
42
43
44
45
46
From: Guillem Jover <gjover@sipwise.com>
Date: Sat, 15 Nov 2025 00:09:35 +0100
Subject: Fix python scripts shebangs

Use python3 instead of python in the scripts shebang lines.

Warned-by: lintian
---
 contrib/fortune.cgi   |    2 +-
 contrib/ping.cgi      |    2 +-
 contrib/sendsms       |    2 +-
 contrib/smstomail.cgi |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

--- a/contrib/fortune.cgi
+++ b/contrib/fortune.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 FORTUNE_MAX_TRIES = 10
 SMS_MAX = 160
--- a/contrib/ping.cgi
+++ b/contrib/ping.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 """PING cgi.
 
--- a/contrib/sendsms
+++ b/contrib/sendsms
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 import os, string, sys, urllib
 
--- a/contrib/smstomail.cgi
+++ b/contrib/smstomail.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 MAIL_SENDER = "liw"
 MAIL_RECEIVER = "liw"