Skip to content

Commit

Permalink
[antlir1] relax repomd.xml parser
Browse files Browse the repository at this point in the history
Summary:
This was literally not even used but is breaking snapshots with the hashicorp
repos...

Test Plan: testhard

Reviewed By: naveedgol

Differential Revision: D49639654

fbshipit-source-id: 340aedfbe0d0d92ee858357d410ffa79d70a1909
  • Loading branch information
vmagro authored and facebook-github-bot committed Sep 26, 2023
1 parent ce4f067 commit cd60399
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions antlir/rpm/repo_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ def _parse_repomd(xml: bytes) -> Iterator[Repodata]:
assert attr_name == "href"
(checksum_node,) = data.getElementsByTagName("checksum")
(checksum_text_node,) = checksum_node.childNodes
((attr_name, checksum_type),) = checksum_node.attributes.items()
assert attr_name == "type"
(size_node,) = data.getElementsByTagName("size")
(size_text_node,) = size_node.childNodes
assert len(size_node.attributes) == 0
Expand Down

0 comments on commit cd60399

Please sign in to comment.