[Rpm-maint] [rpm-software-management/rpm] RFE: Handle disttag (#589)

Jeff Johnson notifications at github.com
Sun Nov 11 02:01:48 UTC 2018


In the interest of moving conversations about what character SHOULD be used as a separator for DistTag, I point you at the PCRE regex that has been in use for almost a decade here.

http://rpm5.org/cvs/fileview?f=rpm/macros/macros.in&v=1.39.2.52

See the 2 (one commented out) definitions of %evr_tuple_match. Both PCRE's as written  assume a ':' separator for both Epoch and DistTag. One can change the PCRE to use a '.' or '-' or '/' or whatever character one wishes to separate the serial representation of the tuple {E,V,R,D} (or T if twiddle-in-version is desired) that is desired.

So far no one has mentioned the added SuSE inspired twiddle-in-version parsing that is also necessary to handle in dependency strings if DistTag is handled.

All of the pseudo-regexes mentioned in this issue are incomplete. The PCRE I have pointed out can be used with pcregrep to do try-and-see experimentation with various representations of EVR if DistTag is added.

-- 
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-437637165
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181110/23fec692/attachment.html>


More information about the Rpm-maint mailing list