Bug#782619: box2d: invalid regexp in watch file

Markus Koschany apo at gambaru.de
Tue Apr 14 21:49:00 UTC 2015


On 14.04.2015 23:20, gregor herrmann wrote:
> Source: box2d
> Severity: minor
> 
> box2d's watch file kills PET, the last line of the python backtrace
> is
> 
> sre_constants.error: invalid group reference
> 
> Of course PET should handle the problem more gracefully but the
> regexp still seems to have a problem:
> 
> version=3
> opts=uversionmangle=s/(\d)[\/]$/$1$2/,\
> dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \
> http://box2d.googlecode.com/svn/tags/v(\d.*)
> 
> 
> Unless I'm mistaken, the $2 in the opts line seems to be the problem
> as it doesn't refer to any capture group.
> 
> Not sure what the intention actually is but this should probably be either
>     s/(\d)(\/)$/$1$2/
> or
>     s/(\d)\/$/$1/
> 
>>From PET's point of view, a commit in git would be enough to deal
> with the problem :)

Hi,

Hmm, version 1 doesn't work but version 2 does. I've just committed the fix.

Cheers,

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20150414/b6b790a6/attachment.sig>


More information about the Pkg-games-devel mailing list