fix(autopatch): Updated 4 find strings in replace actions and fixed lorax-templates-almalinux-requires.sh script to handle multiple Requ #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "agent-fix/a10s-20260603-022652"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Automated fix by autopatch agent.
Summary: Updated 4 find strings in replace actions and fixed lorax-templates-almalinux-requires.sh script to handle multiple Requires: lines
Root cause
The upstream spec (v10.3) changed in multiple ways: (1) '%define templatedir' no longer includes '/80-rhel' at the end (now points to the parent templates.d/ directory), (2) the %description text changed from 'placed in %{templatedir}' to 'placed in %{templatedir}/80-rhel', (3) the %install section changed from 'cp -a 80-rhel/' to 'cp -a 80-rhel' (no trailing /) and added a new 'cp -a 70-64k' line for the new %package 64k subpackage, (4) the %files section changed from '%{templatedir}/' to '%{templatedir}/80-rhel/'. Additionally, the new %package 64k subpackage introduced a second 'Requires:' line which broke the lorax-templates-almalinux-requires.sh script (sed received a multi-line replacement string). Fixed by adding 'head -1' to the grep pipeline so only the main package's Requires is captured. The reference branch (a10) had the same outdated config — no fix available there.
Original error
Type:
ActionNotAppliedErrorPackage:
lorax-templates-rhel| Webhook branch:c10s