allow files from a git repo to exist in build repo without throwing an error
This commit is contained in:
parent
ed6494826f
commit
75428387f6
1 changed files with 18 additions and 16 deletions
|
@ -96,7 +96,8 @@ def build(
|
|||
for file in files:
|
||||
if last_build_info:
|
||||
last_build_info_for_this_file = \
|
||||
list(filter(lambda i: i['source file'] == str(file.relative_to(src_dir)), last_build_info['tex_sources']))
|
||||
list(filter(lambda i: i['source file'] == str(file.relative_to(src_dir)),
|
||||
last_build_info['tex_sources']))
|
||||
else:
|
||||
last_build_info_for_this_file = []
|
||||
sources_to_build.append(
|
||||
|
@ -147,6 +148,7 @@ def build(
|
|||
file.unlink()
|
||||
elif not str(file.relative_to(output_dir)) in built_files:
|
||||
if not file.is_dir() and not str(file.relative_to(output_dir)) == 'build_info.json':
|
||||
if '.git' not in str(file):
|
||||
# PyTeX does not at all know something about this file
|
||||
raise UnknownFileInBuildDirectoryError(file.relative_to(output_dir))
|
||||
|
||||
|
|
Loading…
Reference in a new issue