summaryrefslogtreecommitdiffstats
path: root/Documentation/sphinx
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-07-18 16:13:48 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-07-19 08:49:27 -0300
commitd6f0f2f19a9e41bd0bcd5757f68500ed29352509 (patch)
treeb4f2ec34273e2892cc000901069c5eb3811261cc /Documentation/sphinx
parent518b7d55f80eb548595c7940b6975ba350e5255d (diff)
downloadlinux-d6f0f2f19a9e41bd0bcd5757f68500ed29352509.tar.gz
linux-d6f0f2f19a9e41bd0bcd5757f68500ed29352509.tar.bz2
linux-d6f0f2f19a9e41bd0bcd5757f68500ed29352509.zip
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>
Diffstat (limited to 'Documentation/sphinx')
-rw-r--r--Documentation/sphinx/load_config.py2
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):
latex_documents = namespace['latex_documents']
for l in latex_documents:
- if l[0].find(dir) == 0:
+ if l[0].find(dir + '/') == 0:
has = True
fn = l[0][len(dir) + 1:]
new_latex_docs.append((fn, l[1], l[2], l[3], l[4]))