X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7717bbf59d711d21818c89309dbe08e00b16250f..98c1b923fc090f830b7b3a575e3d08ba399bd870:/src/nominatim_db/tools/exec_utils.py diff --git a/src/nominatim_db/tools/exec_utils.py b/src/nominatim_db/tools/exec_utils.py index 4cbbf95d..fc3a7465 100644 --- a/src/nominatim_db/tools/exec_utils.py +++ b/src/nominatim_db/tools/exec_utils.py @@ -35,7 +35,7 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None: '--number-processes', '1' if options['append'] else str(options['threads']), '--cache', str(options['osm2pgsql_cache']), '--style', str(options['osm2pgsql_style']) - ] + ] if str(options['osm2pgsql_style']).endswith('.lua'): env['LUA_PATH'] = ';'.join((str(options['osm2pgsql_style_path'] / '?.lua'), @@ -50,7 +50,6 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None: cmd.extend(('--output', 'gazetteer', '--hstore', '--latlon')) cmd.extend(_mk_tablespace_options('main', options)) - if options['flatnode_file']: cmd.extend(('--flat-nodes', options['flatnode_file']))