- if args.prepare_database or self._is_complete_import(args):
- LOG.warning('Creating database')
- database_import.setup_database_skeleton(args.config.get_libpq_dsn(),
- rouser=args.config.DATABASE_WEBUSER)
-
- if not self._is_complete_import(args):
- return 0
-
- if not args.prepare_database or \
- args.continue_at == 'import-from-file' or \
- self._is_complete_import(args):