#121 When re-running process-distgit with %autorel set, it will re-generate the macros
Closed: Fixed 2 years ago by scoady. Opened 2 years ago by scoady.

If you set %autorel and run process-distgit more than once, the auto-generated code is inserted into the spec file every time - even if it already exists.


NB: This is a victim of the same circumstance as a couple other issues, i.e. the process-distgit functionality isn't what end users should be using (same as the rpmautospec CLI in general). This is what the koji plugin does before building an SRPM and correct in that context, but end users shouldn't run that command to build locally.

Metadata Update from @nphilipp:
- Issue tagged with: F35 Change

2 years ago

Metadata Update from @nphilipp:
- Issue untagged with: F35 Change

2 years ago

Metadata Update from @amoloney:
- Issue set to the milestone: 0.2 (Stg Deployment)
- Issue tagged with: Non-Official Builds

2 years ago

Metadata Update from @nphilipp:
- Issue tagged with: F35 Change

2 years ago

There's no way to find out if an already processed spec file used %autochangelog or not. But as the fedpkg/rpkg changes (see #144) need a way to not overwrite the original, enabling users to specify a target file (to not overwrite the original) should solve this issue adequately.

Metadata Update from @nphilipp:
- Issue assigned to nphilipp

2 years ago

Login to comment on this ticket.

Metadata
Boards 1
Delivery Board Status: Done
Related Pull Requests
  • #183 Merged 2 years ago