Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0479-code-Stop-looking-for-docs-when-we-reach-r...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0479-code-Stop-looking-for-docs-when-we-reach-root-dir.patch of Package erlang
From 63bd7ab82ffcecab21d5cc4e52cca87fbc4c8c39 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Fri, 9 Sep 2022 12:57:00 +0200 Subject: [PATCH 1/2] code: Stop looking for docs when we reach root dir --- lib/kernel/src/code.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl index 001f3ac981..a178958397 100644 --- a/lib/kernel/src/code.erl +++ b/lib/kernel/src/code.erl @@ -885,9 +885,12 @@ get_doc_chunk(Filename, Mod) when is_atom(Mod) -> {ok,binary_to_term(Bin)} end; get_doc_chunk(Filename, Mod) -> + RootDir = code:root_dir(), case filename:dirname(Filename) of Filename -> {error,missing}; + RootDir -> + {error,missing}; Dir -> ChunkFile = filename:join([Dir,"doc","chunks",Mod ++ ".chunk"]), case file:read_file(ChunkFile) of -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor