#121 When re-running process-distgit with %autorel set, it will re-generate the macros
Closed: Fixed by scoady. Opened 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

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

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

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

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

PR: #183

Commit 25c8f40b fixes this issue

Metadata
Related Pull Requests