Package: src:konversation
Version: 1.7.5-1
Severity: normal
Tags: sid bullseye patch
User: debian-pyt...@lists.debian.org
Usertags: py2removal

Use Python3 instead of Python2. The scripts are compatible with Python2 and Python3.

  * Use python3 for the scripts (no changes necessary), use python3
    as the shebang and recommend python3 instead of python.
 
diff -Nru konversation-1.7.5/debian/control konversation-1.7.5/debian/control
--- konversation-1.7.5/debian/control	2018-07-02 14:51:36.000000000 +0200
+++ konversation-1.7.5/debian/control	2019-10-10 15:52:33.000000000 +0200
@@ -66,7 +66,7 @@
 Package: konversation-data
 Architecture: all
 Depends: ${misc:Depends}, ${perl:Depends}
-Recommends: konversation (>= ${source:Version}), python
+Recommends: konversation (>= ${source:Version}), python3
 Description: data files for Konversation
  Konversation is a client for the Internet Relay Chat (IRC) protocol. This
  package contains data files for Konversation. It is probably of no use if
diff -Nru konversation-1.7.5/debian/patches/python3-shebang.diff konversation-1.7.5/debian/patches/python3-shebang.diff
--- konversation-1.7.5/debian/patches/python3-shebang.diff	1970-01-01 01:00:00.000000000 +0100
+++ konversation-1.7.5/debian/patches/python3-shebang.diff	2019-10-10 15:52:12.000000000 +0200
@@ -0,0 +1,40 @@
+--- a/data/scripts/bug
++++ b/data/scripts/bug
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ # -*- coding: utf-8 -*-
+ #
+ # This program is free software; you can redistribute it and/or
+--- a/data/scripts/cmd
++++ b/data/scripts/cmd
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ # -*- coding: utf-8 -*-
+ #
+ # This program is free software; you can redistribute it and/or
+--- a/data/scripts/media
++++ b/data/scripts/media
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ # -*- coding: utf-8 -*-
+ #
+ # This program is free software; you can redistribute it and/or
+--- a/data/scripts/sysinfo
++++ b/data/scripts/sysinfo
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ # -*- coding: utf-8 -*-
+ #
+ # This program is free software; you can redistribute it and/or
+--- a/data/scripting_support/python/konversation/dbus.py
++++ b/data/scripting_support/python/konversation/dbus.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ # -*- coding: utf-8 -*-
+ #
+ # This program is free software; you can redistribute it and/or
diff -Nru konversation-1.7.5/debian/patches/series konversation-1.7.5/debian/patches/series
--- konversation-1.7.5/debian/patches/series	2018-07-02 14:51:36.000000000 +0200
+++ konversation-1.7.5/debian/patches/series	2019-10-10 15:48:40.000000000 +0200
@@ -1 +1,2 @@
 kubuntu_default-channels.diff
+python3-shebang.diff

Reply via email to