Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions content_resolver/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,8 @@ def _analyze_buildroot(self):
for view_conf_id in self.configs["views"]:
view_conf = self.configs["views"][view_conf_id]

if view_conf["type"] == "compose":
#if view_conf["type"] == "compose":
if True:
if view_conf["buildroot_strategy"] == "root_logs":
for arch in view_conf["architectures"]:
self._populate_buildroot_with_view_srpms(view_conf, arch)
Expand Down Expand Up @@ -2467,7 +2468,8 @@ def _add_buildroot_to_views(self):
for view_conf_id in self.configs["views"]:
view_conf = self.configs["views"][view_conf_id]

if view_conf["type"] == "compose":
#if view_conf["type"] == "compose":
if True:
if view_conf["buildroot_strategy"] == "root_logs":
for arch in view_conf["architectures"]:
self._add_buildroot_to_view(view_conf, arch)
Expand Down Expand Up @@ -2700,7 +2702,8 @@ def _generate_views_all_arches(self):
view_all_arches["id"] = view_conf_id
view_all_arches["has_buildroot"] = False

if view_conf["type"] == "compose":
#if view_conf["type"] == "compose":
if True:
if view_conf["buildroot_strategy"] == "root_logs":
view_all_arches["has_buildroot"] = True
else:
Expand Down
6 changes: 6 additions & 0 deletions content_resolver/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@ def _load_config_addon_view(self, document_id, document, settings):
for pkg in document["data"]["unwanted_packages"]:
config["unwanted_packages"].append(str(pkg))

# Buildroot strategy
config["buildroot_strategy"] = "none"
if "buildroot_strategy" in document["data"]:
if str(document["data"]["buildroot_strategy"]) in ["none", "root_logs"]:
config["buildroot_strategy"] = str(document["data"]["buildroot_strategy"])

# Packages to be flagged as unwanted on specific architectures
config["unwanted_arch_packages"] = {}
for arch in settings["allowed_arches"]:
Expand Down