On Wed, Mar 03, 2021 at 01:07:44AM +0100, Miro HronĨok wrote:
On 02. 03. 21 22:05, Pierre-Yves Chibon wrote:
> The devil is in the details: pre-release, snapinfo, minorbump aren't really
> covered by distance being just an integer bumped.
I don't see this covered in the current method either. Or was it in the
meantime? Anyway:
It is planned and part of the work to be done with this proposal:
https://docs.pagure.org/fedora-infra.rpmautospec/autorel.html#using-autorel
- pre-release should go into version (~)
- snapinfo should go into version (~ or ^)
The only real problem I see here is minorbump. We could have something like:
%{autorel -m}. That means, micobump since this was added here. But I guess
it is ugly.
> I know we considered the "number of commits since the last version bump"
when we
> looked into this. I honestly do not remember precisely why we didn't go with
it.
IIRC it was because you considered building several rebuilds with different
releases from the same commit a goal (while I'd rather require an empty
commit that explains the reason for the rebuild).
Indeed, that approach would not allow rebuilding a commit without adding a new
(potentially empty) commit.
One of the idea being that not having to add commits would make it easier to do
auto-rebuild of dependency chains.
Pierre