Bug#782619: box2d: invalid regexp in watch file

gregor herrmann gregoa at debian.org
Tue Apr 14 21:20:50 UTC 2015


Source: box2d
Severity: minor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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 :)


Cheers,
gregor


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJVLYSyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREMUUxMzE2RTkzQTc2MEE4MTA0RDg1RkFC
QjNBNjgwMTg2NDlBQTA2AAoJELs6aAGGSaoGDeMQALIflTb+6H7WsrXacbptQuBo
bQ45DUjGCK54wB7AV4iNDbxp5jd+KBgkmt2FNBF22CyIg3lPBuYidqxP7FMLjU/v
OjovqIE5OdCwYu5bst85lIIaWfyVwg9FDFuI/70KDsn1qeNTYQaIpbAbnxFiY41z
1s9XHCXu4jAwockU/kOlUgYazawbA8zbmAzpcgx9Q3/2JBAIlJAgeOCXyuxmiVwo
wApComQqX2xALjm4XgLGX8aRCZc5vmIN2EV2diPMl3EWqnAOauMHY3fG6RGDp4xM
vrHzwmbG27GzN9MznMAXNc6QvtCyfWhWBYJhgL8iNM0jf8fcgT2GN9TiU4smGSua
s6Pwq3PJqbAet2xtqWRT0gv5i78D9FXTM2oxY53BB3gdJsnJJSaz+3tlImPWldP2
Jz6RJVlyAnsa3Eui4WPYLT9RJFYah11eGc/ybfMpD66pn7lEi4uKHP5WWq7AnpLx
ZHbzWPcjz/UUKjpMzRpktyQjCyVH19YtbeonZu9yDTUS0ZawOb6HDSUQqMzxziBk
PBC3biZiMD2ga9eTJqXR0POgb/7eqBkgGoZ25Nu7Gc3NgBkavR36O7cn1gs+ZWGe
Yhy+QOb6mEhKjMwu987xWXD5vGkrt93s6Nu34UXGgPYmC7aBVPcSVD3ySc7QS4H6
4DtdSssOIztATcXSvSTn
=IsNw
-----END PGP SIGNATURE-----



More information about the Pkg-games-devel mailing list