[Python-modules-team] Bug#870038: python-future: please prefer Python3 binding when both versions are installed
Gianfranco Costamagna
locutusofborg at debian.org
Sat Jul 29 07:13:19 UTC 2017
Package: python-future
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu artful ubuntu-patch
Version: 0.15.2-4
Severity: important
Tags: patch
* d/*.postinst: Prefer Python 3 version if both versions installed.
Thanks for considering the attached patch.
We don't want more Python2 stuff pulled in in our systems :)
thanks
Gianfranco
-------------- next part --------------
diff -Nru python-future-0.15.2/debian/python3-future.postinst python-future-0.15.2/debian/python3-future.postinst
--- python-future-0.15.2/debian/python3-future.postinst 2016-09-23 13:53:41.000000000 +0200
+++ python-future-0.15.2/debian/python3-future.postinst 2017-07-27 14:22:52.000000000 +0200
@@ -3,8 +3,8 @@
set -e
if [ "$1" = "configure" ] ; then
- update-alternatives --install /usr/bin/futurize futurize /usr/bin/python3-futurize 200
- update-alternatives --install /usr/bin/pasteurize pasteurize /usr/bin/python3-pasteurize 200
+ update-alternatives --install /usr/bin/futurize futurize /usr/bin/python3-futurize 300
+ update-alternatives --install /usr/bin/pasteurize pasteurize /usr/bin/python3-pasteurize 300
fi
#DEBHELPER#
diff -Nru python-future-0.15.2/debian/python-future.postinst python-future-0.15.2/debian/python-future.postinst
--- python-future-0.15.2/debian/python-future.postinst 2016-09-23 13:53:41.000000000 +0200
+++ python-future-0.15.2/debian/python-future.postinst 2017-07-27 14:22:44.000000000 +0200
@@ -3,8 +3,8 @@
set -e
if [ "$1" = "configure" ] ; then
- update-alternatives --install /usr/bin/futurize futurize /usr/bin/python2-futurize 300
- update-alternatives --install /usr/bin/pasteurize pasteurize /usr/bin/python2-pasteurize 300
+ update-alternatives --install /usr/bin/futurize futurize /usr/bin/python2-futurize 200
+ update-alternatives --install /usr/bin/pasteurize pasteurize /usr/bin/python2-pasteurize 200
fi
#DEBHELPER#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170729/7ff40f4d/attachment.sig>
More information about the Python-modules-team
mailing list