From cdfd8fe81e5d8e10fe52dd4ac7f330c731f29ae2 Mon Sep 17 00:00:00 2001 From: Robert Bikar Date: Wed, 29 Jan 2025 12:54:50 +0100 Subject: [PATCH] Make some of UBI-related notes mutable [RHELDST-20307] For adding extra content (for testing of UBI repos) to the ubi repository we need make some of repo notes mutable so we can update them in existing repositories. --- src/pubtools/pulplib/_impl/model/repository/yum.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pubtools/pulplib/_impl/model/repository/yum.py b/src/pubtools/pulplib/_impl/model/repository/yum.py index 32e50d53..3446a284 100644 --- a/src/pubtools/pulplib/_impl/model/repository/yum.py +++ b/src/pubtools/pulplib/_impl/model/repository/yum.py @@ -92,12 +92,16 @@ class YumRepository(Repository): type=list, converter=frozenlist, pulp_field="notes.population_sources", + mutable=True, ) """List of repository IDs used to populate this repository """ ubi_population = pulp_attrib( - default=False, type=bool, pulp_field="notes.ubi_population" + default=False, + type=bool, + pulp_field="notes.ubi_population", + mutable=True, ) """Flag indicating whether repo should be populated from population_sources for the purposes of UBI """ @@ -109,7 +113,10 @@ class YumRepository(Repository): ) ubi_config_version = pulp_attrib( - default=None, type=str, pulp_field="notes.ubi_config_version" + default=None, + type=str, + pulp_field="notes.ubi_config_version", + mutable=True, ) """Version of UBI config that should be used for population of this repository."""