diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-07-18 15:13:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-07-19 07:49:27 -0400 |
commit | d6f0f2f19a9e41bd0bcd5757f68500ed29352509 (patch) | |
tree | b4f2ec34273e2892cc000901069c5eb3811261cc | |
parent | 518b7d55f80eb548595c7940b6975ba350e5255d (diff) |
docs: load_config.py: ensure subdirs end with "/"
The logic with seeks for a subdir passed via SPHINXDIRS is
incomplete: if one uses something like:
make SPHINXDIRS=arm pdfdocs
It will find both "arm" and "arm64" directories. Worse than
that, it will convert "arm64/index" to "4/index".
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | Documentation/sphinx/load_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/load_config.py b/Documentation/sphinx/load_config.py index 101e6f0b0fcf..eeb394b39e2c 100644 --- a/Documentation/sphinx/load_config.py +++ b/Documentation/sphinx/load_config.py | |||
@@ -35,7 +35,7 @@ def loadConfig(namespace): | |||
35 | latex_documents = namespace['latex_documents'] | 35 | latex_documents = namespace['latex_documents'] |
36 | 36 | ||
37 | for l in latex_documents: | 37 | for l in latex_documents: |
38 | if l[0].find(dir) == 0: | 38 | if l[0].find(dir + '/') == 0: |
39 | has = True | 39 | has = True |
40 | fn = l[0][len(dir) + 1:] | 40 | fn = l[0][len(dir) + 1:] |
41 | new_latex_docs.append((fn, l[1], l[2], l[3], l[4])) | 41 | new_latex_docs.append((fn, l[1], l[2], l[3], l[4])) |