Skip to content

Commit

Permalink
Revert to stricter t2 path check
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jun 3, 2024
1 parent 70c2a74 commit bbb7592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repology/parsers/parsers/t2.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
subdir = os.path.basename(pkgpath)
name = os.path.basename(rel_desc_path).removesuffix('.desc')

data = _parse_descfile(desc_path, pkg)

if subdir != name:
pkg.log(f'recipe directory "{subdir}" != recipe name "{name}", this is not expected', Logger.WARNING)
raise RuntimeError(f'recipe name "{name}" is different from its subdirectory name "{subdir}", this is not expected; see https://github.com/rxrbln/t2sde/issues/173')

data = _parse_descfile(desc_path, pkg)

pkg.add_name(name, NameType.T2_NAME)
pkg.set_extra_field('path', pkgpath)
Expand Down

0 comments on commit bbb7592

Please sign in to comment.