[Rpm-maint] [rpm-software-management/rpm] Arrange different timestamp for %changelog entries from the same day (#1511)

Panu Matilainen notifications at github.com
Tue Jan 26 12:53:23 UTC 2021


Actually, mixing the two different timestamp formats within a day is not a coherently supported as it is.  

```
* Thu Oct 10 2019 Some Body <sb at elsewhere.org> 1.0-4
- Clusterducking evening

* Thu Oct 10 13:00:11 UTC 2019 Other Body <ob at somewhere.org> 1.0-3
- Afternoon sloth

* Thu Oct 10 2019 Some Body <sb at elsewhere.org> 1.0-2
- Midday maggot

* Thu Oct 10 08:00:11 UTC 2019 Other Body <ob at somewhere.org> 1.0-1
- Early bird
```

As it is, the 1.0-2 would happen to be between the two precision entries (but imagine other timezones being involved, it gets really confusing), but the 1.0-4 added in the evening will currently make rpm complain about it being out of order. That can be fixed by adding a second to the latest entry instead and I suppose this is fine for the non-precision timestamps (considering the PR we're discussing this in... :sweat_smile: ) but it does get a little strange. 

And then there's the other way around:
```
* Thu Oct 10 08:00:11 UTC 2019 Other Body <ob at somewhere.org> 1.0-1
- Day shift

* Thu Oct 10 2019 Some Body <sb at elsewhere.org> 1.0-1
- Night shift

```

Ie somebody adds an old-style entry in the early hours, and then in the morning somebody adds another entry, which will end up being before the previous entry, and sorting that out isn't straightforward anymore.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1511#issuecomment-767522372
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210126/4d71dd1c/attachment.html>


More information about the Rpm-maint mailing list