Re: How do I get the source package _name_ from an RPM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 23, 2021 at 09:43:30AM +0100, Petr Pisar wrote:
> V Mon, Nov 22, 2021 at 07:32:26PM -0500, Matthew Miller napsal(a):
> > But in any case, it doesn't solve my problem, as it just gives filenames,
> > and there's no way to know when a name ends and a version starts, as they
> > both use - as a separator.
> > 
> The hyphen separator is forbidden inside release and version parts. Thus the
> solution is parse the file name from the end. Example:

IIRC this is now only valid for regular RPMs. RPMs build as part of modularity
can have a hyphen in the "stream" part (which is included in the release).

I do not know if we have any actual case, but in theory it is the case.


Pierre

Attachment: signature.asc
Description: PGP signature

_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux