[PATCH cubicweb] [ux] display instance name in suggested upgrade command

Nicolas Chauvat nicolas.chauvat at logilab.fr
Fri Oct 18 09:57:04 CEST 2019


On Fri, Oct 18, 2019 at 05:12:35AM +0200, Laurent Peuch wrote:
> # HG changeset patch
> # User Laurent Peuch <cortex at worlddomination.be>
> # Date 1561509122 -7200
> #      Wed Jun 26 02:32:02 2019 +0200
> # Node ID ed7ba90ac49b0f6380cf0ab894bea1745c9379c1
> # Parent  5c432a7fc442e170c9005666131b01a88a5c9334
> # Available At https://hg.logilab.org/users/lpeuch/cubicweb
> #              hg pull https://hg.logilab.org/users/lpeuch/cubicweb -r ed7ba90ac49b
> [ux] display instance name in suggested upgrade command
> 
> diff --git a/cubicweb/server/repository.py b/cubicweb/server/repository.py
> --- a/cubicweb/server/repository.py
> +++ b/cubicweb/server/repository.py
> @@ -557,8 +557,8 @@ class Repository(object):
>                          fsversion = self.config.cubicweb_version()
>                      if version < fsversion:
>                          msg = ('instance has %s version %s but %s '
> -                               'is installed. Run "cubicweb-ctl upgrade".')
> -                        raise ExecutionError(msg % (cube, version, fsversion))
> +                               'is installed. Run "cubicweb-ctl upgrade %s".')
> +                        raise ExecutionError(msg % (cube, version, fsversion, self.config.appid))
>          return vcconf

Applied on 3.26. Thanks.

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  



More information about the cubicweb-devel mailing list