[debian] Install cubicweb-ctl from python2 build 3.26
authorDenis Laxalde <denis.laxalde@logilab.fr>
Tue, 25 Jun 2019 16:42:58 +0200
branch3.26
changeset 12665 112f3c2b6f1e
parent 12664 2337c8c05657
child 12666 0e12c615aa0b
[debian] Install cubicweb-ctl from python2 build Previously, the binary package was empty. Now it is bound to the python2 package as support for python3 is "fresh". In order python2 and python3 packages to be co-installable, we drop the cubicweb-ctl file from both packages.
debian/changelog
debian/rules
--- a/debian/changelog	Thu Jun 20 17:02:59 2019 +0200
+++ b/debian/changelog	Tue Jun 25 16:42:58 2019 +0200
@@ -2,6 +2,7 @@
 
   * Remove build dependency on dh-systemd
   * Build python3 basic packages
+  * Actually install something in cubicweb-ctl binary package
 
  -- Denis Laxalde <denis.laxalde@logilab.fr>  Tue, 25 Jun 2019 16:38:09 +0200
 
--- a/debian/rules	Thu Jun 20 17:02:59 2019 +0200
+++ b/debian/rules	Tue Jun 25 16:42:58 2019 +0200
@@ -23,3 +23,8 @@
 override_dh_installchangelogs:
 	dh_installchangelogs -Xdoc/changes
 
+override_dh_auto_install:
+	dh_auto_install
+	mkdir -p debian/cubicweb-ctl/usr/bin
+	mv debian/python-cubicweb/usr/bin/cubicweb-ctl debian/cubicweb-ctl/usr/bin
+	rm debian/python3-cubicweb/usr/bin/cubicweb-ctl