V Tue, Jun 21, 2022 at 11:58:02AM +0200, Pierre-Yves Chibon napsal(a):
On Tue, Jun 21, 2022 at 12:27:57AM +0200, Fabio Valentini wrote:
> There's currently a 100% foolproof way to parse NEVRs into their
> components, because there are *always* two "-" separators (when
> counting from the end) that separate "name", "epoch:version",
and
> "release" (i.e. you can do nevr.rsplit("-", 2) in Python, and
you get
> 100% correct results for 100% of packages in Fedora repositories).
That is already broken today with modules where the stream which is included in
the name can have '-' in them.
I believe that the hyphen is replaced with an underscore when building
a modular package.
-- Petr