Mercurial > kallithea
changeset 7122:70b2a828bf1e stable
setup-db: print completion message to avoid confusion (issue #303)
There are cases where the last message of setup-db is a warning, giving the
impression that the overall command failed which may not actually be the
case.
For example, when git is not installed, warnings are given, but they are not
an actual error. Kallithea will work fine for Mercurial repositories.
To avoid any confusion, print a completion message at the end.
Any real errors will abort the command and not make it this far.
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Sun, 21 Jan 2018 14:23:55 +0100 |
parents | fefd7279e798 |
children | cefb13bad9b5 |
files | kallithea/lib/paster_commands/setup_db.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/paster_commands/setup_db.py Mon Jan 15 00:34:13 2018 +0100 +++ b/kallithea/lib/paster_commands/setup_db.py Sun Jan 21 14:23:55 2018 +0100 @@ -108,3 +108,5 @@ self, config_file, section, self.sysconfig_install_vars(installer)) self.call_sysconfig_functions( 'post_setup_hook', installer, config_file) + + print 'Database set up successfully.'