mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Fixed ci-tests, osm-file flag
Preparing database should work without osm-file
This commit is contained in:
committed by
Sarah Hoffmann
parent
279b4fd6d2
commit
e7b8e1a2c2
2
.github/workflows/ci-tests.yml
vendored
2
.github/workflows/ci-tests.yml
vendored
@@ -307,7 +307,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Import
|
- name: Import
|
||||||
run: |
|
run: |
|
||||||
nominatim import --prepare-database --osm-file ../test.pbf
|
nominatim import --prepare-database
|
||||||
nominatim import --no-superuser --osm-file ../test.pbf
|
nominatim import --no-superuser --osm-file ../test.pbf
|
||||||
working-directory: /home/nominatim/nominatim-project
|
working-directory: /home/nominatim/nominatim-project
|
||||||
|
|
||||||
|
|||||||
@@ -82,11 +82,13 @@ class SetupAll:
|
|||||||
|
|
||||||
if args.continue_at is None:
|
if args.continue_at is None:
|
||||||
files = args.get_osm_file_list()
|
files = args.get_osm_file_list()
|
||||||
if not files:
|
if not files and not args.only_prepare_database:
|
||||||
raise UsageError("No input files (use --osm-file).")
|
raise UsageError("No input files (use --osm-file).")
|
||||||
|
|
||||||
if args.only_import_data and args.only_prepare_database:
|
if args.only_import_data and args.only_prepare_database:
|
||||||
raise UsageError("Cannot use --no-superuser and --prepare-database together.")
|
raise UsageError(
|
||||||
|
"Cannot use --only-import-data and --only-prepare-database together."
|
||||||
|
)
|
||||||
|
|
||||||
if args.only_prepare_database or self._is_complete_import(args):
|
if args.only_prepare_database or self._is_complete_import(args):
|
||||||
LOG.warning('Creating database')
|
LOG.warning('Creating database')
|
||||||
|
|||||||
Reference in New Issue
Block a user