Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Fixed case sensitivity issue Signed-off-by: Vibhinn Singhal <vibhinnsinghal_ec21a18_61@dtu.ac.in> #15

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Next Next commit
Fixed case sensitivity issue
  • Loading branch information
Vibhinn committed Apr 5, 2023
commit bc93c597c50574e93ec1d15d86a9062b9be61f9c
5 changes: 3 additions & 2 deletions code/parsers/yum.py
Original file line number Diff line number Diff line change
@@ -27,14 +27,15 @@ class YumParser(ParserBase):
def on_load(self) -> None:
self.yumblock_extractor_regex = re.compile(
"^\W*=+$(\n|\r\n|\W)*Package(\n|\r\n|\W)+Arch(itecture)?(\n|\r\n|\W)+Version(\n|\r\n|\W)+Repository(\n|\r\n|\W)+Size(\n|\r\n|\W)^\W*=+$([\s\S]*?)Transaction Summary(\n|\r\n)^\W*=+$",
re.MULTILINE,
re.MULTILINE | re.IGNORECASE,
)
self.dependency_extractor_regex = re.compile(
"( (?P<name>\S+)\s+(?P<arch>\S+)\s+(?P<version>\d\S+)\s+(?P<repo>\S+)\s+[\d\.]+ [kMGb])"
re.IGNORECASE,
)
self.fastest_mirror_block_detection = re.compile(
"((Determining fastest mirrors|Loading mirror speeds from cached hostfile)(\n|\r\n)(\s\*\s.*(\n|\r\n))+)",
re.MULTILINE,
re.MULTILINE | re.IGNORECASE,
)
self.mirror_mapping_extraction = re.compile("\s\*\s(\w+):\s(\S+)")