Skip to content

Commit

Permalink
Fix homebrew parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed May 16, 2024
1 parent 7c58e1d commit 5c4f2ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion repology/packagemaker/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class NameType:

HOMEBREW_NAME: ClassVar[int] = 150
HOMEBREW_NAME_PRE_AT: ClassVar[int] = 151
HOMEBREW_OLDNAME: ClassVar[int] = IGNORED
HOMEBREW_FULL_NAME: ClassVar[int] = IGNORED

HOMEBREW_CASK_TOKEN: ClassVar[int] = 160
Expand Down
1 change: 0 additions & 1 deletion repology/parsers/parsers/homebrew.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
with factory.begin() as pkg:
pkg.add_name(packagedata['name'], NameType.HOMEBREW_NAME)
pkg.add_name(packagedata['name'].split('@', 1)[0], NameType.HOMEBREW_NAME_PRE_AT)
pkg.add_name(packagedata['oldname'], NameType.HOMEBREW_OLDNAME)
pkg.add_name(packagedata['full_name'], NameType.HOMEBREW_FULL_NAME)

pkg.set_summary(packagedata['desc'])
Expand Down

0 comments on commit 5c4f2ce

Please sign in to comment.