- gather-module can find modules through symlinks

- Bump version
- Update changelog
This commit is contained in:
soksanichenko 2023-04-15 20:03:27 +03:00
parent 1c3e5dce5e
commit 114a73f100
2 changed files with 10 additions and 3 deletions

View File

@ -2,7 +2,7 @@
Name: pungi Name: pungi
Version: 4.3.7 Version: 4.3.7
Release: 6%{?dist}.alma Release: 7%{?dist}.alma
Summary: Distribution compose tool Summary: Distribution compose tool
License: GPL-2.0-only License: GPL-2.0-only
@ -159,6 +159,9 @@ rm %{buildroot}%{_bindir}/pungi
%changelog %changelog
* Thu Apr 13 2023 Stepan Oksanichenko <soksanichenko@cloudlinux.com> - 4.3.7-7
- gather-module can find modules through symlinks
* Thu Apr 13 2023 Stepan Oksanichenko <soksanichenko@cloudlinux.com> - 4.3.7-6 * Thu Apr 13 2023 Stepan Oksanichenko <soksanichenko@cloudlinux.com> - 4.3.7-6
- CLI option `--label` can be passed through a Pungi config file - CLI option `--label` can be passed through a Pungi config file

View File

@ -2,6 +2,7 @@ import gzip
import lzma import lzma
import os import os
from argparse import ArgumentParser, FileType from argparse import ArgumentParser, FileType
from glob import iglob
from io import BytesIO from io import BytesIO
from pathlib import Path from pathlib import Path
from typing import List, AnyStr, Iterable, Union, Optional from typing import List, AnyStr, Iterable, Union, Optional
@ -30,8 +31,11 @@ def grep_list_of_modules_yaml(repos_path: AnyStr) -> Iterable[BytesIO]:
""" """
return ( return (
read_modules_yaml_from_specific_repo(repo_path=path.parent) read_modules_yaml_from_specific_repo(repo_path=Path(path).parent)
for path in Path(repos_path).rglob('repodata') for path in iglob(
str(Path(repos_path).joinpath('**/repodata')),
recursive=True
)
) )