Skip to content

Commit

Permalink
Temporary fix for slackbuilds parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Sep 22, 2023
1 parent 519af79 commit 37a7507
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions repology/parsers/parsers/slackbuilds.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake

variables = _parse_infofile(info_path)

if 'PRGNAM' not in variables:
# XXX: make it fatal someday when we can rollback
# to previous repo version after failed parsing
pkg.log('PRGNAM missing', severity=Logger.ERROR)
continue

if variables['PRGNAM'] != pkgname:
pkg.log(f'PRGNAM "{variables["PRGNAM"]}" != pkgname "{pkgname}"', severity=Logger.ERROR)
continue
Expand Down

0 comments on commit 37a7507

Please sign in to comment.