aboutsummaryrefslogtreecommitdiffstats
path: root/main/openpgm/python3.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-10-23 06:26:29 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-12 15:20:48 +0000
commit57eabb486f30b5697cab13e79e2782e14e7731ab (patch)
tree0c916c6efd4d042e9faa765014f05da14e53662c /main/openpgm/python3.patch
parentf63d62ff797aad1963bebb9372a1eece586b8b80 (diff)
downloadaports-57eabb486f30b5697cab13e79e2782e14e7731ab.tar.bz2
aports-57eabb486f30b5697cab13e79e2782e14e7731ab.tar.xz
main/openpgm: switch to python3
Diffstat (limited to 'main/openpgm/python3.patch')
-rw-r--r--main/openpgm/python3.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/openpgm/python3.patch b/main/openpgm/python3.patch
new file mode 100644
index 0000000000..f1ae79772c
--- /dev/null
+++ b/main/openpgm/python3.patch
@@ -0,0 +1,28 @@
+diff --git a/version_generator.py b/version_generator.py
+index b2f8f9a..0143d67 100755
+--- a/version_generator.py
++++ b/version_generator.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+
+ import os
+ import platform
+@@ -8,7 +8,7 @@ build_date = time.strftime ("%Y-%m-%d")
+ build_time = time.strftime ("%H:%M:%S")
+ build_rev = filter (str.isdigit, "$Revision: 1487 $")
+
+-print """
++print("""
+ /* vim:ts=8:sts=8:sw=4:noai:noexpandtab
+ *
+ * OpenPGM version.
+@@ -50,6 +50,6 @@ const char* pgm_build_revision = "%s";
+
+
+ /* eof */
+-"""%(build_date, build_time, platform.system(), platform.machine(), build_rev)
++"""%(build_date, build_time, platform.system(), platform.machine(), build_rev))
+
+ # end of file
+