Skip to content

Over-versioning in %autochangelog #311

@mcrha

Description

@mcrha

Coming here from https://pagure.io/rpmdevtools/issue/127

When a package uses %autochangelog, but does not use %autorelease, the generated changelog can get out of sync with the real version. You can find out the correct version, the old commits are proof of that, but when there are bare commits without an actual build (and without a version bump), then you bump the version and get out of sync.

Furthermore, the above bug has a case where the Fedora mass rebuild wrote a correct version into the %changelog (that bug is about not writing into the %changelog when the %autochangelog is used, which they do not do only if also %autorelease is used at the moment), but the %autochangelog rewrote it and bumped the changelog version to its liking.

From my point of view, consecutive commits without a build can generate a single entry with joined all of the commit messages up to the one which bumps the version. Not that you can figure any such thing with %autorelease, but then maybe you can assume the build happened, just as you do now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions