Compare commits
8 Commits
pungi-4.7.
...
master
Author | SHA1 | Date | |
---|---|---|---|
e17a6d7f42 | |||
5152dfa764 | |||
b61614969d | |||
38cc2f79a0 | |||
d8b7f9210e | |||
69ec4df8f0 | |||
20841cfd4c | |||
cb53de3c46 |
18
pungi.spec
18
pungi.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: pungi
|
Name: pungi
|
||||||
Version: 4.7.0
|
Version: 4.7.0
|
||||||
Release: 3%{?dist}.alma
|
Release: 6%{?dist}.alma.1
|
||||||
Summary: Distribution compose tool
|
Summary: Distribution compose tool
|
||||||
|
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
@ -174,6 +174,16 @@ rm %{buildroot}%{_bindir}/pungi
|
|||||||
%{_bindir}/%{name}-cache-cleanup
|
%{_bindir}/%{name}-cache-cleanup
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 27 2024 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.7.0-6
|
||||||
|
- Add x86_64_v2 to a list of exclusive arches if there is any arch with base `x86_64`
|
||||||
|
|
||||||
|
* Mon Sep 16 2024 Eduard Abdullin <eabdullin@almalinux.org> - 4.7.0-5
|
||||||
|
- Add x86_64_v2 to arch list if x86_64 in list
|
||||||
|
|
||||||
|
* Fri Sep 06 2024 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.7.0-4
|
||||||
|
- Truncate a volume ID to 32 bytes
|
||||||
|
- Add new architecture `x86_64_v2`
|
||||||
|
|
||||||
* Thu Sep 05 2024 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.7.0-2
|
* Thu Sep 05 2024 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.7.0-2
|
||||||
- Use xorriso as recommended package and genisoimage as required for RHEL8/9 and vice versa for RHEL10
|
- Use xorriso as recommended package and genisoimage as required for RHEL8/9 and vice versa for RHEL10
|
||||||
|
|
||||||
@ -280,15 +290,15 @@ rm %{buildroot}%{_bindir}/pungi
|
|||||||
- Fix minor Ruff/flake8 warnings (tim)
|
- Fix minor Ruff/flake8 warnings (tim)
|
||||||
- osbuild: manifest type in config (cmdr)
|
- osbuild: manifest type in config (cmdr)
|
||||||
|
|
||||||
* Mon Sep 25 2023 Lubomír Sedlář <lsedlar@redhat.com> - 4.5.0-7
|
|
||||||
- Backport patch for explicit setting of osbuild image type in metadata
|
|
||||||
|
|
||||||
* Mon Nov 21 2023 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.5.0-3
|
* Mon Nov 21 2023 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.5.0-3
|
||||||
- Method `get_remote_file_content` is object's method now
|
- Method `get_remote_file_content` is object's method now
|
||||||
|
|
||||||
* Wed Nov 15 2023 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.5.0-2
|
* Wed Nov 15 2023 Stepan Oksanichenko <soksanichenko@almalinux.org> - 4.5.0-2
|
||||||
- Return empty list if a repo doesn't contain any module
|
- Return empty list if a repo doesn't contain any module
|
||||||
|
|
||||||
|
* Mon Sep 25 2023 Lubomír Sedlář <lsedlar@redhat.com> - 4.5.0-7
|
||||||
|
- Backport patch for explicit setting of osbuild image type in metadata
|
||||||
|
|
||||||
* Thu Aug 31 2023 Lubomír Sedlář <lsedlar@redhat.com> - 4.5.0-1
|
* Thu Aug 31 2023 Lubomír Sedlář <lsedlar@redhat.com> - 4.5.0-1
|
||||||
- kojiwrapper: Stop being smart about local access (lsedlar)
|
- kojiwrapper: Stop being smart about local access (lsedlar)
|
||||||
- Fix unittest errors (ounsal)
|
- Fix unittest errors (ounsal)
|
||||||
|
@ -93,6 +93,11 @@ def split_name_arch(name_arch):
|
|||||||
|
|
||||||
def is_excluded(package, arches, logger=None):
|
def is_excluded(package, arches, logger=None):
|
||||||
"""Check if package is excluded from given architectures."""
|
"""Check if package is excluded from given architectures."""
|
||||||
|
if any(
|
||||||
|
getBaseArch(exc_arch) == 'x86_64' for exc_arch in package.exclusivearch
|
||||||
|
) and 'x86_64_v2' not in package.exclusivearch:
|
||||||
|
package.exclusivearch.append('x86_64_v2')
|
||||||
|
|
||||||
if package.excludearch and set(package.excludearch) & set(arches):
|
if package.excludearch and set(package.excludearch) & set(arches):
|
||||||
if logger:
|
if logger:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
@ -34,6 +34,8 @@ arches = {
|
|||||||
"x86_64": "athlon",
|
"x86_64": "athlon",
|
||||||
"amd64": "x86_64",
|
"amd64": "x86_64",
|
||||||
"ia32e": "x86_64",
|
"ia32e": "x86_64",
|
||||||
|
# x86-64-v2
|
||||||
|
"x86_64_v2": "noarch",
|
||||||
# ppc64le
|
# ppc64le
|
||||||
"ppc64le": "noarch",
|
"ppc64le": "noarch",
|
||||||
# ppc
|
# ppc
|
||||||
|
@ -487,10 +487,7 @@ def get_volid(compose, arch, variant=None, disc_type=False, formats=None, **kwar
|
|||||||
tried.add(volid)
|
tried.add(volid)
|
||||||
|
|
||||||
if volid and len(volid) > 32:
|
if volid and len(volid) > 32:
|
||||||
raise ValueError(
|
volid = volid[:32]
|
||||||
"Could not create volume ID longer than 32 bytes, options are %r",
|
|
||||||
sorted(tried, key=len),
|
|
||||||
)
|
|
||||||
|
|
||||||
if compose.conf["restricted_volid"]:
|
if compose.conf["restricted_volid"]:
|
||||||
# Replace all non-alphanumeric characters and non-underscores) with
|
# Replace all non-alphanumeric characters and non-underscores) with
|
||||||
|
@ -375,15 +375,15 @@ class TestVolumeIdGenerator(unittest.TestCase):
|
|||||||
],
|
],
|
||||||
"image_volid_layered_product_formats": [],
|
"image_volid_layered_product_formats": [],
|
||||||
"volume_id_substitutions": {},
|
"volume_id_substitutions": {},
|
||||||
|
"restricted_volid": False,
|
||||||
}
|
}
|
||||||
variant = mock.Mock(uid="Server", type="variant")
|
variant = mock.Mock(uid="Server", type="variant")
|
||||||
c = compose.Compose(conf, self.tmp_dir)
|
c = compose.Compose(conf, self.tmp_dir)
|
||||||
|
|
||||||
with self.assertRaises(ValueError) as ctx:
|
volid = util.get_volid(c, "x86_64", variant, disc_type=False)
|
||||||
util.get_volid(c, "x86_64", variant, disc_type=False)
|
self.assertEqual(len(volid), 32)
|
||||||
|
pass
|
||||||
|
|
||||||
self.assertIn("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", str(ctx.exception))
|
|
||||||
self.assertIn("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", str(ctx.exception))
|
|
||||||
|
|
||||||
@mock.patch("pungi.compose.ComposeInfo")
|
@mock.patch("pungi.compose.ComposeInfo")
|
||||||
def test_apply_substitutions(self, ci):
|
def test_apply_substitutions(self, ci):
|
||||||
|
Loading…
Reference in New Issue
Block a user