Ai
1 Star 0 Fork 14

李恬/gtk-doc

forked from src-openEuler/gtk-doc
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-mkdb-not-found-file.patch 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
lyn 提交于 2021-07-25 18:59 +08:00 . fix not found file
--- gtk-doc-1.33.2/gtkdoc/mkdb.py 2021-01-20 01:08:26.503552400 +0800
+++ gtk-doc-1.33.2_bak/gtkdoc/mkdb.py 2021-07-26 10:50:13.896786712 +0800
@@ -25,7 +25,7 @@
from collections import OrderedDict
import logging
-import os
+import os,sys
import re
import string
@@ -286,7 +286,11 @@
# extract docbook header or define default
doctype_header = GetDocbookHeader(main_sgml_file)
-
+
+ if not os.path.exists(os.path.join(ROOT_DIR, MODULE + "-sections.txt")):
+ print (os.path.join(ROOT_DIR, MODULE + "-sections.txt") + " file is not found")
+ sys.exit()
+
ReadKnownSymbols(os.path.join(ROOT_DIR, MODULE + "-sections.txt"))
ReadSignalsFile(os.path.join(ROOT_DIR, MODULE + ".signals"))
ReadArgsFile(os.path.join(ROOT_DIR, MODULE + ".args"))
@@ -294,9 +298,19 @@
obj_tree = ReadObjectHierarchy(os.path.join(ROOT_DIR, MODULE + ".hierarchy"))
ReadInterfaces(os.path.join(ROOT_DIR, MODULE + ".interfaces"))
ReadPrerequisites(os.path.join(ROOT_DIR, MODULE + ".prerequisites"))
+
+
+ if not os.path.exists(os.path.join(ROOT_DIR, MODULE + "-decl.txt")):
+ print (os.path.join(ROOT_DIR, MODULE + "-decl.txt") + " file is not found")
+ sys.exit()
ReadDeclarationsFile(os.path.join(ROOT_DIR, MODULE + "-decl.txt"), 0)
if os.path.isfile(os.path.join(ROOT_DIR, MODULE + "-overrides.txt")):
+
+ if not os.path.exists(os.path.join(ROOT_DIR, MODULE + "-overrides.txt")):
+ print (os.path.join(ROOT_DIR, MODULE + "-overrides.txt") + " file is not found")
+ sys.exit()
+
ReadDeclarationsFile(os.path.join(ROOT_DIR, MODULE + "-overrides.txt"), 1)
logging.info("Data files read")
@@ -3758,6 +3772,12 @@
# This array holds any subdirectories found.
subdirs = []
+
+
+ if not os.path.isdir(source_dir):
+ print (source_dir + " directory is not found")
+ sys.exit()
+
for ifile in sorted(os.listdir(source_dir)):
logging.debug("... : %s", ifile)
if ifile.startswith('.'):
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/litian_code/gtk-doc.git
git@gitee.com:litian_code/gtk-doc.git
litian_code
gtk-doc
gtk-doc
master

搜索帮助