RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Generalizing EVR comparison precedence, preliminaries

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 02 Jan 2009 - 14:31:49 CET
Message-id: <203AF672-7D15-4633-AF62-FE32673C0A7D@mac.com>

On Jan 2, 2009, at 8:04 AM, Jeff Johnson wrote:
>
> Hmmm, the PCRE posix emulation seems to *ahem* extend POSIX syntax  
> slightly then.

A spot check with --miredebug seems to hint at a PCRE extension to  
POSIX emulation,
the values in the output are what I would expect if using POSIX ERE's  
even though
the pattern is PCRE:

[jbj@wellfleet wdj]$ rpm -Va --nofiles --miredebug
--> mireRegcomp(0xb9caeea0, "i386-redhat-linux-gnu") rc 0
--> mireRegcomp(0xb9d9df30, "^(?:([^:-]+):)?([^:-]+)(?:-([^:-]+))?(?:: 
([^:-]+))?$") rc 0
--> mireRegexec(0xb9d9df30, 0xb9cef036[7]) rc 0 mode 2 "3.0.4-1"
--> mireRegexec(0xb9d9df30, 0xb9d9de60[7]) rc 0 mode 2 "3.0.4-1"
--> mireRegexec(0xb9d9df30, 0xb9cef03e[5]) rc 0 mode 2 "4.0-1"
--> mireRegexec(0xb9d9df30, 0xb9d9de94[5]) rc 0 mode 2 "4.0-1"
--> mireRegexec(0xb9d9df30, 0xb9ceebfb[7]) rc 0 mode 2 "3.0.4-1"
--> mireRegexec(0xb9d9df30, 0xb9d9de60[7]) rc 0 mode 2 "3.0.4-1"
--> mireRegexec(0xb9d9df30, 0xb9ceec03[5]) rc 0 mode 2 "4.0-1"
--> mireRegexec(0xb9d9df30, 0xb9d9de94[5]) rc 0 mode 2 "4.0-1"
--> mireRegexec(0xb9d9df30, 0xb9ce1201[13]) rc 0 mode 2 "2.13.0-2.fc10"
--> mireRegexec(0xb9d9df30, 0xb9cf028d[6]) rc 0 mode 2 "2.10.3"

"Works" is all I really care. And I do appreciate any/all assistance
with RE writing.

73 de Jeff

  • application/pkcs7-signature attachment: smime.p7s
Received on Fri Jan 2 14:31:53 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.