[Rpm-maint] [rpm-software-management/rpm] RFE: Handle disttag (#589)
Jeff Johnson
notifications at github.com
Sun Nov 11 02:32:27 UTC 2018
@imz: it's the EVR string in a separate tag, not the NEVR or NEVRA (or variants including DistTag) identifiers where the parsing complexities (including missing values) are hidden.
The parsing rules (which you mentioned) that splits N from the rest (in an explicit NEVRDA) string is basically
The last dash is the separator between V-R, the 2nd to last dash is the separator between N and the rest. None of V or R or D or A may include a dash.
Arch parsing can be handled with a period, followed by key words like "i686" or "x86_64".
What remains is EVRD which must be parsed unambiguously whatever separator characters are used, including unspecified or missing values.
Epoch is a digit string up to the first colon, D (as in the PCRE) is whatever follows the last colon (and colon is a forbidden character in the D string).
The PCRE breaks the EVRD string into substrings assigned to known match indices while also handling missing/unspecified matches.
--
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/issues/589#issuecomment-437638429
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181110/1b17dd55/attachment-0001.html>
More information about the Rpm-maint
mailing list