DragonFly BSD
DragonFly bugs List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: pkgtools chokes on the new version name :-/


From: Aaron Malone <aaron@xxxxxxxxx>
Date: Thu, 15 Jul 2004 14:05:02 -0500

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@xxxxxxxxx



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]