Skip to content

Commit 1bf39ce

Browse files
committed
meson.build: Simplify if-file-exists test
1 parent c65a883 commit 1bf39ce

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

meson.build

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,8 @@ if maintainer_mode
134134
project_source_root / 'untracked' / 'docs',
135135
check: true,
136136
)
137-
else
138-
cmd_py = '''
139-
import os
140-
import sys
141-
sys.exit(os.path.isfile("@0@"))
142-
'''.format(doc_reference)
143-
file_exists = run_command(python3, '-c', cmd_py, check: false).returncode() != 0
144-
if not file_exists
145-
warning('Missing files in untracked/. You may have to enable maintainer-mode.')
146-
endif
137+
elif not import('fs').is_file(doc_reference)
138+
warning('Missing files in untracked/. You may have to enable maintainer-mode.')
147139
endif
148140

149141
# Check if perl is required and available.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy