Projects
Factory:RISC-V:Gnome
gtk-doc
_service:tar_scm:fix-mkdb-not-found-file.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:fix-mkdb-not-found-file.patch of Package gtk-doc
--- 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('.'):
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2