Control: tags -1 +patch

Ubuntu has been shipping the scripts in python3-argcomplete instead of
in python-argcomplete for a while.

Thanks,
Jeremy Bicha

diff -pruN 0.8.1-1/debian/rules 0.8.1-1ubuntu2/debian/rules
--- 0.8.1-1/debian/rules    2014-10-09 00:01:18.000000000 +0000
+++ 0.8.1-1ubuntu2/debian/rules    2016-01-10 12:12:41.000000000 +0000
@@ -4,11 +4,22 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 export PYBUILD_NAME=argcomplete
-export PYBUILD_AFTER_INSTALL_python3=rm -rf {destdir}/usr/bin

 %:
     dh $@ --with python2,python3 --buildsystem=pybuild

+override_dh_auto_install:
+    dh_auto_install -O--buildsystem=pybuild
+    mkdir -p debian/python3-argcomplete/usr/share/man/man1
+    for i in \
+      activate-global-python-argcomplete \
+      python-argcomplete-check-easy-install-script \
+      register-python-argcomplete; \
+    do \
+      mv debian/python3-argcomplete/usr/bin/$$i
debian/python3-argcomplete/usr/bin/$${i}3; \
+      cp debian/$$i.1 debian/python3-argcomplete/usr/share/man/man1/$${i}3.1; \
+    done
+
 generate_manpages:
     VERSION=$$(./setup.py -V) ; \
     for file in activate-global-python-argcomplete
python-argcomplete-check-easy-install-script
register-python-argcomplete ; do \

Reply via email to