From db917cb0d45767e15b4d8d759f56992a74d7eacf Mon Sep 17 00:00:00 2001 From: Robbe Haesendonck Date: Wed, 27 Sep 2023 09:29:54 +0200 Subject: [PATCH] Made sure legacy import command still works --- nominatim/clicmd/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nominatim/clicmd/setup.py b/nominatim/clicmd/setup.py index 626e3f2a..754f3b2f 100644 --- a/nominatim/clicmd/setup.py +++ b/nominatim/clicmd/setup.py @@ -99,13 +99,13 @@ class SetupAll: if not files and not args.prepare_database: raise UsageError("No input files (use --osm-file).") - if args.prepare_database: + if args.prepare_database or args.continue_at is None: LOG.warning('Creating database') database_import.setup_database_skeleton(args.config.get_libpq_dsn(), rouser=args.config.DATABASE_WEBUSER) return 0 - if args.continue_at == 'import-from-file': + if args.continue_at in ('import-from-file', None): # Check if the correct plugins are installed database_import.check_existing_database_plugins(args.config.get_libpq_dsn()) LOG.warning('Setting up country tables') -- 2.39.5