Skip to content

Commit c620497

Browse files
Guard Rock5 Bookworm apt sources
1 parent db1de0e commit c620497

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/build_glide_platform_packages.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,21 @@ jobs:
326326
raise SystemExit("Could not find package-stage build marker in ChrootCompiler")
327327
packages_stage.write_text(packages_text.replace(packages_needle, packages_patch, 1))
328328
329+
packages_text = packages_stage.read_text()
330+
rock5_bookworm_guard_marker = "# openhd_glide_bookworm_guard_rock5_preflight"
331+
rock5_func_needle = " normalize_bullseye_sources() {\n"
332+
if rock5_bookworm_guard_marker not in packages_text and rock5_func_needle in packages_text:
333+
rock5_func_patch = (
334+
f" {rock5_bookworm_guard_marker}\n"
335+
+ rock5_func_needle
336+
+ " if [[ \"${DISTRO}\" == \"bookworm\" ]]; then\n"
337+
+ f" {packages_marker}\n"
338+
+ " return 0\n"
339+
+ " fi\n"
340+
)
341+
packages_text = packages_text.replace(rock5_func_needle, rock5_func_patch, 1)
342+
packages_stage.write_text(packages_text)
343+
329344
packages_text = packages_stage.read_text()
330345
apt_update_marker = "# openhd_glide_patch_apt_update_calls"
331346
if apt_update_marker not in packages_text:

0 commit comments

Comments
 (0)