[Python-modules-commits] [python-qrcode] 01/01: Add manpage as a slave in update-alternatives.

Hugo Lefeuvre hle at moszumanska.debian.org
Mon Aug 22 21:41:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

hle pushed a commit to branch master
in repository python-qrcode.

commit b28a1d157d62db06840bf00bc07f134e0490fca1
Author: Hugo Lefeuvre <hle at debian.org>
Date:   Mon Aug 22 23:28:50 2016 +0200

    Add manpage as a slave in update-alternatives.
---
 debian/python-qrcode.postinst  | 4 +++-
 debian/python3-qrcode.postinst | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/python-qrcode.postinst b/debian/python-qrcode.postinst
index cb88a4a..e1e22f8 100644
--- a/debian/python-qrcode.postinst
+++ b/debian/python-qrcode.postinst
@@ -2,8 +2,10 @@
 
 set -e
 
+mandir=/usr/share/man
+
 if [ "$1" = "configure" ] ; then
-	update-alternatives --install /usr/bin/qr qr /usr/bin/python2-qr 300
+	update-alternatives --install /usr/bin/qr qr /usr/bin/python2-qr 300 --slave $mandir/man1/qr.1.gz qr.1.gz $mandir/man1/python2-qr.1.gz
 fi
 
 #DEBHELPER#
diff --git a/debian/python3-qrcode.postinst b/debian/python3-qrcode.postinst
index e821f2e..9076e8a 100644
--- a/debian/python3-qrcode.postinst
+++ b/debian/python3-qrcode.postinst
@@ -2,8 +2,10 @@
 
 set -e
 
+mandir=/usr/share/man
+
 if [ "$1" = "configure" ] ; then
-	update-alternatives --install /usr/bin/qr qr /usr/bin/python3-qr 200
+	update-alternatives --install /usr/bin/qr qr /usr/bin/python3-qr 200 --slave $mandir/man1/qr.1.gz qr.1.gz $mandir/man1/python3-qr.1.gz
 fi
 
 #DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-qrcode.git



More information about the Python-modules-commits mailing list