pkgtools chokes on the new version name :-/

Aaron Malone aaron at munge.net
Thu Jul 15 12:06:43 PDT 2004


On Thursday 15 July 2004 13:54, Sascha Wildner wrote:
> walt wrote:
> >   if m = /^(((\d+)(?:\.\d+)+)-(\w+)(-\S+)?) (\w+)$/.match(uname)
>
>               ^^^^^^^^^^^^^^^^^^
>
> I guess it chokes on the A in 1.0A. I don't know ruby but this
> looks (and the naming of the variables suggests it) as if it wants
> to read two numbers seperated by a dot as a version number.

Changing the line to

if m = /^(((\d+)(?:\.\d+)+\w?)-(\w+)(-\S+)?) (\w+)$/.match(uname)

should fix it.  There may be a better way; regexes give me a headache.

-- 
Aaron Malone
aaron at xxxxxxxxx





More information about the Bugs mailing list