]> git.openstreetmap.org Git - nominatim.git/commitdiff
Fixed legacy import command
authorRobbe Haesendonck <googleit@inuits.eu>
Thu, 28 Sep 2023 07:59:42 +0000 (09:59 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 7 Dec 2023 08:04:33 +0000 (09:04 +0100)
Check whether prepare-database is true, if so exit early

nominatim/clicmd/setup.py

index 1a38b3a62b1045ee36ca603bcf1af09c3e99579c..d4b5777ed8525b1f4da07ec59b1db9905d8c2fe9 100644 (file)
@@ -102,7 +102,8 @@ class SetupAll:
                 LOG.warning('Creating database')
                 database_import.setup_database_skeleton(args.config.get_libpq_dsn(),
                                                         rouser=args.config.DATABASE_WEBUSER)
                 LOG.warning('Creating database')
                 database_import.setup_database_skeleton(args.config.get_libpq_dsn(),
                                                         rouser=args.config.DATABASE_WEBUSER)
-                return 0
+                if args.prepare_database:
+                    return 0
 
             if args.continue_at in ('import-from-file', None):
                 # Check if the correct plugins are installed
 
             if args.continue_at in ('import-from-file', None):
                 # Check if the correct plugins are installed