fix(autopatch): Updated sb_key names from centossecureboot202/redhatsecureboot802 to centossecureboot803/redhatsecureboot803, and update #1

Merged
eabdullin merged 1 commit from agent-fix/a10s-20260706-073436 into a10s 2026-07-06 07:40:41 +00:00
Owner

Automated fix by autopatch agent.

Summary: Updated sb_key names from centossecureboot202/redhatsecureboot802 to centossecureboot803/redhatsecureboot803, and updated sbat_distro summary from 'The Fedora Project' to 'The CentOS Project'.

Root cause

The upstream spec (fwupd-efi.spec on branch c10s) was updated with new secureboot key names and a corrected distro summary. Two replace actions in config.yaml had stale find strings:

  • The sb_key block: centossecureboot202 and redhatsecureboot802 were renamed to centossecureboot803 and redhatsecureboot803 upstream. This caused the ActionNotAppliedError.
  • The sbat_distro block: the CentOS summary string changed from "The Fedora Project" to "The CentOS Project" upstream, which would have caused a second failure after the first was resolved.

The reference branch (a10) config had the same outdated values, so the fix was derived directly from the spec file. Both find strings were updated to match the current spec content. All three replace actions now apply cleanly and the resulting spec correctly contains almalinuxsecureboot0, AlmaLinux EFI globals, and AlmaLinux SBAT distro entries.

Original error

Type: ActionNotAppliedError

Traceback (most recent call last):
  File "/root/autopatch-tool/src/webserv.py", line 89, in debrand_packages
    result = apply_modifications(
  File "/root/autopatch-tool/src/debranding.py", line 120, in apply_modifications
    config.apply_actions(rpms_working_dir + f"/{package}")
  File "/root/autopatch-tool/src/actions_handler.py", line 938, in apply_actions
    action.execute(Path(package_path))
  File "/root/autopatch-tool/src/actions_handler.py", line 475, in execute
    process_lines(
  File "/root/autopatch-tool/src/actions_handler.py", line 236, in process_lines
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['%if 0%{?centos}', '%define sb_key\t\tcentossecureboot202', '%else', '%define sb_key\t\tredhatsecureboot802', '%endif']' in /root/autopatch-tool/src/rpms-namespace/fwupd-efi/fwupd-efi.spec

Package: fwupd-efi | Webhook branch: c10s

Automated fix by autopatch agent. **Summary:** Updated sb_key names from centossecureboot202/redhatsecureboot802 to centossecureboot803/redhatsecureboot803, and updated sbat_distro summary from 'The Fedora Project' to 'The CentOS Project'. ### Root cause The upstream spec (`fwupd-efi.spec` on branch `c10s`) was updated with new secureboot key names and a corrected distro summary. Two `replace` actions in `config.yaml` had stale `find` strings: - The `sb_key` block: `centossecureboot202` and `redhatsecureboot802` were renamed to `centossecureboot803` and `redhatsecureboot803` upstream. This caused the `ActionNotAppliedError`. - The `sbat_distro` block: the CentOS summary string changed from `"The Fedora Project"` to `"The CentOS Project"` upstream, which would have caused a second failure after the first was resolved. The reference branch (`a10`) config had the same outdated values, so the fix was derived directly from the spec file. Both `find` strings were updated to match the current spec content. All three replace actions now apply cleanly and the resulting spec correctly contains `almalinuxsecureboot0`, AlmaLinux EFI globals, and AlmaLinux SBAT distro entries. ### Original error **Type:** `ActionNotAppliedError` ``` Traceback (most recent call last): File "/root/autopatch-tool/src/webserv.py", line 89, in debrand_packages result = apply_modifications( File "/root/autopatch-tool/src/debranding.py", line 120, in apply_modifications config.apply_actions(rpms_working_dir + f"/{package}") File "/root/autopatch-tool/src/actions_handler.py", line 938, in apply_actions action.execute(Path(package_path)) File "/root/autopatch-tool/src/actions_handler.py", line 475, in execute process_lines( File "/root/autopatch-tool/src/actions_handler.py", line 236, in process_lines raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['%if 0%{?centos}', '%define sb_key\t\tcentossecureboot202', '%else', '%define sb_key\t\tredhatsecureboot802', '%endif']' in /root/autopatch-tool/src/rpms-namespace/fwupd-efi/fwupd-efi.spec ``` --- Package: `fwupd-efi` | Webhook branch: `c10s`
Updated sb_key names from centossecureboot202/redhatsecureboot802 to centossecureboot803/redhatsecureboot803, and updated sbat_distro summary from 'The Fedora Project' to 'The CentOS Project'.
eabdullin deleted branch agent-fix/a10s-20260706-073436 2026-07-06 07:40:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
autopatch/fwupd-efi!1
No description provided.