fix handling extra header correctly
This commit is contained in:
parent
4c5efa4087
commit
e55a6728a9
@ -96,7 +96,8 @@ class BuildInfo:
|
||||
or include_pytex_info_text
|
||||
or include_timestamp
|
||||
or include_pytex_version
|
||||
or include_git_version):
|
||||
or include_git_version
|
||||
or extra_header):
|
||||
self._header = None
|
||||
return
|
||||
else:
|
||||
@ -113,6 +114,7 @@ class BuildInfo:
|
||||
self._header += PYTEX_VERSION
|
||||
if include_git_version:
|
||||
self._header += SOURCE_CODE_VERSION
|
||||
if len(self._header) > 0:
|
||||
self._header += ['']
|
||||
if extra_header:
|
||||
self._header += extra_header + ['']
|
||||
|
Loading…
Reference in New Issue
Block a user