Automatic update to v1.202.508.50 (1.20250805) #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "cpanmirror/perl-Mail-DMARC:autoupdate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
autogits-devel referenced this pull request from perl/_ObsPrj2025-08-28 12:55:15 +02:00
@@ -19,3 +19,3 @@
%define cpan_name Mail-DMARC
Name: perl-Mail-DMARC
Version: 1.202.506.100
Version: 1.202.508.50
I think the version in before was already bad. 20250805 is clearly a timestamp. Turning that into this is both obfuscated as well as leads to problems as 20250810 will be parsed a as lower version compared to 20250805 @tinita
An example of good handling of the timestamp based version is https://src.opensuse.org/perl/perl-IPC-Run/pulls/1/files
I know it looks confusing, but I can't make my script rely on the fact that a version looks like a timestamp.
The timestamp in the version for IPC-Run is before the dot, btw, so that I don't touch at all.
First of all,
1.202.508.50
will be seen as a newer version than1.202.506.100
because 508 is newer than 506.So let's have a look how versions are normalized.
I added
1.20250810
to better compare with1.20250805,
so that we have both timestamps in august, to show that it is actually smaller.So here we have three dates in ascending order:
For normalizing they are split up in triplets:
So the normalized versions consist of triplets, that means the last triplet will be filled with zeroes, e.g.
1.202.508.10
is turned into1.202.508.100
. (because it is a decimal number it is originally1.20250810000000
and so on).For
1.202.508.05
it will be1.202.508.050
and the leading zero in the050
is superfluous now in the new format.If perl module authors want timestamps as version numbers after the comma, they should rather use the dotted format in the first place, e,g.
1.2025.8.5
.