tarantool / mkrepo

Maintain DEB and RPM repositories on S3
70 stars 24 forks source link

Harcoded component of 'main' when reading DEB packages from pool #91

Open ggprod opened 10 months ago

ggprod commented 10 months ago

This line: https://github.com/tarantool/mkrepo/blob/master/debrepo.py#L439

as well as this line: https://github.com/tarantool/mkrepo/blob/master/debrepo.py#L495

when processing index units mean that all index units would be associated with a 'main' component.

A better approach would be updating https://github.com/tarantool/mkrepo/blob/master/debrepo.py#L495 to instead extract the component from the path (like dist) and/or update https://github.com/tarantool/mkrepo/blob/master/debrepo.py#L439 to omit the /main suffix or make it a capture group for the component name