Print only xml files for --print-unused-files
The command openstack-doc-tools --check-build --print-unused-files only handles .xml files but no other dependencies, so output only .xml files. Change-Id: I6c39446cb38ca6e73e3b75597a4e38c49bb56ac7
This commit is contained in:
parent
0d91133bef
commit
c8abff0ce7
|
@ -1059,6 +1059,8 @@ def find_affected_books(rootdir, book_exceptions, file_exceptions,
|
|||
dirs[:] = [d for d in dirs if d not in ignore_dirs]
|
||||
|
||||
for f in files:
|
||||
if not f.endswith('.xml'):
|
||||
continue
|
||||
f_base = os.path.basename(f)
|
||||
f_abs = os.path.abspath(os.path.join(root, f))
|
||||
|
||||
|
|
Loading…
Reference in New Issue