also build when last build of file has been dirty

This commit is contained in:
Maximilian Keßler 2021-10-22 13:56:09 +02:00
parent f0c32260fa
commit de10ca7546

View File

@ -69,6 +69,8 @@ class TexFileToFormat:
return self.__format() # Build file since we build all of them
elif not self.pytex_recent or not self.recent:
return self.__format() # Build file since either pytex or package repo is not recent
elif self.last_build_info and self.last_build_info['dirty']:
return self.__format() # Build file since we do not know in what state it is
else:
return self.last_build_info