fix(autopatch): Removed add_files action for 'NEWS' from config-portable.yaml since the file already exists in the package (it is now in #1

Merged
eabdullin merged 1 commits from agent-fix/a8-20260427-075319 into a8 2026-04-27 08:50:37 +00:00
Owner

Automated fix by autopatch agent.

Summary: Removed add_files action for 'NEWS' from config-portable.yaml since the file already exists in the package (it is now included as Source21 in the upstream spec)

Root cause

The upstream java-17-openjdk spec on branch c8 now includes 'NEWS' as Source21, meaning the file is already present in the package's SOURCES directory. The add_files action in config-portable.yaml was trying to copy an older version of NEWS into the package, which fails because AddFilesAction does not support overwriting existing files. The fix is to remove the add_files action entirely, as the upstream package already manages the NEWS file.

Original error

Type: ActionNotAppliedError

Traceback (most recent call last):
  File "/root/autopatch-tool/src/webserv.py", line 77, in debrand_packages
    result = apply_modifications(
  File "/root/autopatch-tool/src/debranding.py", line 111, in apply_modifications
    config.apply_actions(rpms_working_dir + f"/{package}")
  File "/root/autopatch-tool/src/actions_handler.py", line 925, in apply_actions
    action.execute(Path(package_path))
  File "/root/autopatch-tool/src/actions_handler.py", line 765, in execute
    self.copy_file_to_package(package_path, entry.name)
  File "/root/autopatch-tool/src/actions_handler.py", line 731, in copy_file_to_package
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'AddFilesAction' was not applied successfully: File 'NEWS' already exists in package

Package: java-17-openjdk | Webhook branch: c8

Automated fix by autopatch agent. **Summary:** Removed add_files action for 'NEWS' from config-portable.yaml since the file already exists in the package (it is now included as Source21 in the upstream spec) ### Root cause The upstream java-17-openjdk spec on branch c8 now includes 'NEWS' as Source21, meaning the file is already present in the package's SOURCES directory. The add_files action in config-portable.yaml was trying to copy an older version of NEWS into the package, which fails because AddFilesAction does not support overwriting existing files. The fix is to remove the add_files action entirely, as the upstream package already manages the NEWS file. ### Original error **Type:** `ActionNotAppliedError` ``` Traceback (most recent call last): File "/root/autopatch-tool/src/webserv.py", line 77, in debrand_packages result = apply_modifications( File "/root/autopatch-tool/src/debranding.py", line 111, in apply_modifications config.apply_actions(rpms_working_dir + f"/{package}") File "/root/autopatch-tool/src/actions_handler.py", line 925, in apply_actions action.execute(Path(package_path)) File "/root/autopatch-tool/src/actions_handler.py", line 765, in execute self.copy_file_to_package(package_path, entry.name) File "/root/autopatch-tool/src/actions_handler.py", line 731, in copy_file_to_package raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'AddFilesAction' was not applied successfully: File 'NEWS' already exists in package ``` --- Package: `java-17-openjdk` | Webhook branch: `c8`
eabdullin added 1 commit 2026-04-27 07:53:20 +00:00
Removed add_files action for 'NEWS' from config-portable.yaml since the file already exists in the package (it is now included as Source21 in the upstream spec)
eabdullin merged commit a0b4313940 into a8 2026-04-27 08:50:37 +00:00
eabdullin deleted branch agent-fix/a8-20260427-075319 2026-04-27 08:50:38 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
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/java-17-openjdk#1
No description provided.