Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix changelog trimming to work relative to newest existing entry (#1301)
%_changelog_trimtime is an absolute timestamp which needs to be constantly pushed forward to preserve the same relative age, and will start trimming entries from unchanged packages until none are left, leading to unexpected and confusing behavior (RhBug:1722806, ...) It's better to trim by age relative to newest changelog entry. This way the number of trimmed entries will not change unless the spec changes, and at least one entry is always preserved. Introduce a new %_changelog_trimage macro for this and mark the broken by design %_changelog_trimtime as deprecated, but autoconvert an existing trimtime into relative for now. As a seemingly unrelated change, move the "time" variable declaration to a narrower scope to unmask the time() function for use on entry. Fixes: #1301
- Loading branch information