Compare commits

...

3 Commits

2 changed files with 16 additions and 3 deletions

View File

@ -2,7 +2,7 @@
Name: pungi
Version: 4.5.0
Release: 2%{?dist}.alma
Release: 3%{?dist}.alma
Summary: Distribution compose tool
License: GPL-2.0-only
@ -165,6 +165,9 @@ rm %{buildroot}%{_bindir}/pungi
%{_bindir}/%{name}-cache-cleanup
%changelog
* Mon Nov 21 2023 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.5.0-3
- Method `get_remote_file_content` is object's method now
* Wed Nov 15 2023 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.5.0-2
- Return empty list if a repo doesn't contain any module

View File

@ -59,7 +59,12 @@ def read_modules_yaml_from_specific_repo(
repo_path + '/',
'repodata/repomd.xml',
)
repomd_file_path = PackagesGenerator.get_remote_file_content(
packages_generator = PackagesGenerator(
variants=[],
excluded_packages=[],
included_packages=[],
)
repomd_file_path = packages_generator.get_remote_file_content(
file_url=repomd_url
)
else:
@ -77,7 +82,12 @@ def read_modules_yaml_from_specific_repo(
repo_path + '/',
record.location_href,
)
modules_yaml_path = PackagesGenerator.get_remote_file_content(
packages_generator = PackagesGenerator(
variants=[],
excluded_packages=[],
included_packages=[],
)
modules_yaml_path = packages_generator.get_remote_file_content(
file_url=modules_yaml_url
)
else: