Skip to content

Commit

Permalink
Log AOSC empty section or category
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 12, 2024
1 parent 376ca3b commit 4ba443a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions repology/parsers/parsers/aosc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
NameType.AOSC_FULLPATH
)

if not pkgdata['section'] or not pkgdata['category']:
# XXX: make this fatal, as these are used to construct on of a Names
pkg.log('empty section or category', Logger.ERROR)

pkg.set_extra_field('tree', pkgdata['tree'])
pkg.set_extra_field('branch', pkgdata['branch'])

Expand Down

0 comments on commit 4ba443a

Please sign in to comment.