[PATCH 1 of 2 3.26] [debian] Introduce a cubicweb-ctl3 binary package

Denis Laxalde denis.laxalde at logilab.fr
Fri Jul 12 16:20:34 CEST 2019


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1562924986 -7200
#      ven. juil. 12 11:49:46 2019 +0200
# Branch 3.26
# Node ID 7338dcc3ab3ebd84ebbafaac1a06976b04f305d7
# Parent  d1b5fd6129bd26566acc82828e076d62349d1bf5
# Available At https://hg.logilab.org/review/cubicweb
#              hg pull https://hg.logilab.org/review/cubicweb -r 7338dcc3ab3e
[debian] Introduce a cubicweb-ctl3 binary package

This packages conflicts with cubicweb-ctl binary which uses the python2
library. It is meant to ease upgrade of existing installation during the
migration from python2 to python3: in particular, by installing
cubicweb-ctl3, scripts calling "cubicweb-ctl" command should still work
as before.

diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cubicweb (3.26.12-2) UNRELEASED; urgency=medium
+
+  * Introduce a cubicweb-ctl3 binary package, conflicting with cubicweb-ctl.
+
+ -- Denis Laxalde <denis.laxalde at logilab.fr>  Fri, 12 Jul 2019 11:54:09 +0200
+
 cubicweb (3.26.12-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -126,7 +126,7 @@ Depends:
  graphviz,
  gettext,
 Recommends:
- cubicweb-ctl (= ${source:Version}),
+ cubicweb-ctl3 (= ${source:Version}),
  python3-cubicweb-postgresql-support (= ${source:Version})
  | sqlite3,
  python3-cubicweb-pyramid (= ${source:Version}),
@@ -251,6 +251,26 @@ Depends:
  ${misc:Depends},
  ${python:Depends},
  python-cubicweb (= ${source:Version})
+Conflicts:
+ cubicweb-ctl3,
+Description: tool to manage the CubicWeb framework
+ CubicWeb is a semantic web application framework.
+ .
+ This package provides a control script to manage (create, upgrade, start,
+ stop, etc) CubicWeb applications. It also include the init.d script
+ to automatically start and stop CubicWeb applications on boot or shutdown.
+
+
+Package: cubicweb-ctl3
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ python3-cubicweb (= ${source:Version})
+Breaks:
+ cubicweb-ctl,
+Conflicts:
+ cubicweb-ctl,
 Description: tool to manage the CubicWeb framework
  CubicWeb is a semantic web application framework.
  .
diff --git a/debian/cubicweb-ctl.dirs b/debian/cubicweb-ctl3.dirs
copy from debian/cubicweb-ctl.dirs
copy to debian/cubicweb-ctl3.dirs
diff --git a/debian/cubicweb-ctl.manpages b/debian/cubicweb-ctl3.manpages
copy from debian/cubicweb-ctl.manpages
copy to debian/cubicweb-ctl3.manpages
diff --git a/debian/cubicweb-ctl.postrm b/debian/cubicweb-ctl3.postrm
copy from debian/cubicweb-ctl.postrm
copy to debian/cubicweb-ctl3.postrm
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -27,4 +27,5 @@ 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
+	mkdir -p debian/cubicweb-ctl3/usr/bin
+	mv debian/python3-cubicweb/usr/bin/cubicweb-ctl debian/cubicweb-ctl3/usr/bin



More information about the cubicweb-devel mailing list