Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions indexer/src/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ def parse(self, filename: str) -> None:
)
match = regex.match(filename)
if not match:
# Check if file matches "busybar-fXX-sha256sum.txt" pattern
regex_alt = re.compile(r"^busybar-(\w+)-sha256sum\.txt$")
match_alt = regex_alt.match(filename)
if match_alt:
self.target = match_alt.group(1)
self.type = "sha256sum_txt"
return

exception_msg = f"Unknown file {filename}"
logging.exception(exception_msg)
raise Exception(exception_msg)
Expand Down