[MacPorts] #44805: Added livecheck to mksh
MacPorts
noreply at macports.org
Thu Aug 28 12:06:36 PDT 2014
#44805: Added livecheck to mksh
-----------------------------+---------------------------------
Reporter: mschamschula@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords: haspatch maintainer
Port: mksh |
-----------------------------+---------------------------------
Comment (by ryandesign@…):
I think your second backslash migrated a bit:
{{{
${name}-(\[R0-9.\abcdefg]+)${extract.suffix}
}}}
Note how when you run livecheck, the "\a" disappears from the regex
(because an escaped "a" has no meaning in regex syntax):
{{{
DEBUG: The regex is "mksh-([R0-9.bcdefg]+).tgz"
}}}
The backslash belongs before the closing square bracket:
{{{
${name}-(\[R0-9.abcdefg\]+)${extract.suffix}
}}}
Also, note that you're defining a character class here. You're saying you
want to match a sequence of 1 or more characters from the set "0, 1, 2, 3,
4, 5, 6, 7, 8, 9, a, b, c, d, e, f, g, R, period", in any order. Looking
at the [https://www.mirbsd.org/MirOS/dist/mir/mksh/ download directory], I
think we can be more precise than that. All the existing versions begin
with "R", then have at least one digit, and then optionally a letter
suffix. So we could write:
{{{
${name}-(R\[0-9\]+\[a-z\]*)${extract.suffix}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/44805#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list