1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
From d3c44ed4f48e1650caada7f67a2e9256495f149c Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Sun, 22 May 2022 10:50:31 +0200
Subject: [PATCH 2/2] Set default project directory to package-provided
directory
---
nominatim/cli.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/nominatim/cli.py b/nominatim/cli.py
index 8c2136f4..4f686dcd 100644
--- a/nominatim/cli.py
+++ b/nominatim/cli.py
@@ -24,6 +24,9 @@ from nominatim.clicmd.args import NominatimArgs, Subcommand
LOG = logging.getLogger()
+# Patched in by nominatim AUR package
+DEFAULT_PROJECT_DIR = '/var/lib/nominatim/'
+
class CommandlineParser:
""" Wraps some of the common functions for parsing the command line
and setting up subcommands.
@@ -51,8 +54,8 @@ class CommandlineParser:
help='Print only error messages')
group.add_argument('-v', '--verbose', action='count', default=1,
help='Increase verboseness of output')
- group.add_argument('--project-dir', metavar='DIR', default='.',
- help='Base directory of the Nominatim installation (default:.)')
+ group.add_argument('--project-dir', metavar='DIR', default=DEFAULT_PROJECT_DIR,
+ help=f'Base directory of the Nominatim installation (default: {DEFAULT_PROJECT_DIR})')
group.add_argument('-j', '--threads', metavar='NUM', type=int,
help='Number of parallel threads to use')
--
2.37.1
|