From c69c46477e4a09c91b2da56ad6b80fc95e9bf84e Mon Sep 17 00:00:00 2001 From: "Guenther, Karsten (RDD-RM)" Date: Thu, 20 Jun 2024 15:40:43 +0200 Subject: [PATCH] fix: remove file not found status --- bootstrap.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bootstrap.py b/bootstrap.py index 5747242..d59d78a 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -120,7 +120,6 @@ def get_outputs(self) -> List[Path]: class RunInfoStatus(Enum): MATCH = (False, "Nothing has changed, previous execution information matches.") NO_INFO = (True, "No previous execution information found.") - FILE_NOT_FOUND = (True, "Dependencies have been removed.") FILE_CHANGED = (True, "Dependencies have been changed.") def __init__(self, should_run: bool, message: str) -> None: @@ -178,9 +177,7 @@ def previous_run_info_matches(self, runnable: Runnable) -> RunInfoStatus: for file_type in ["inputs", "outputs"]: for path_str, previous_hash in previous_info[file_type].items(): path = Path(path_str) - if not path.exists(): - return RunInfoStatus.FILE_NOT_FOUND - elif self.get_file_hash(path) != previous_hash: + if self.get_file_hash(path) != previous_hash: return RunInfoStatus.FILE_CHANGED return RunInfoStatus.MATCH