(binary_path, dependency_paths)
| 112 | |
| 113 | |
| 114 | def _is_stale_binary(binary_path, dependency_paths): |
| 115 | binary_path = Path(binary_path) |
| 116 | if not binary_path.exists(): |
| 117 | return True |
| 118 | |
| 119 | try: |
| 120 | binary_mtime = binary_path.stat().st_mtime |
| 121 | except OSError: |
| 122 | return True |
| 123 | |
| 124 | for dep in dependency_paths: |
| 125 | dep_path = Path(dep) |
| 126 | if not dep_path.exists(): |
| 127 | continue |
| 128 | try: |
| 129 | if dep_path.stat().st_mtime > binary_mtime: |
| 130 | return True |
| 131 | except OSError: |
| 132 | continue |
| 133 | |
| 134 | return False |
| 135 | |
| 136 | |
| 137 | def _ensure_chat_binary(project_root, lib_path): |
no outgoing calls
no test coverage detected