File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -137,17 +137,9 @@ if maintainer_mode
137137 project_source_root / ' untracked' / ' docs' / ' docs' ,
138138 check : true ,
139139 )
140- else
141- cmd_py = '''
142- import os
143- import sys
144- sys.exit(os.path.isfile("@0@"))
145- ''' .format(doc_reference)
146- file_exists = run_command (python3, ' -c' , cmd_py, check : false ).returncode() != 0
147- if not file_exists
148- warning (' Missing files in untracked/. ' + \
149- ' Enable maintainer-mode if you want to build documentation or create a dist tarball.' )
150- endif
140+ elif not import (' fs' ).is_file(doc_reference)
141+ warning (' Missing files in untracked/.\n ' + \
142+ ' Enable maintainer-mode if you want to build documentation or create a dist tarball.' )
151143endif
152144
153145# Check if perl is required and available.
You can’t perform that action at this time.
0 commit comments