Livecheck regex syntax

Simon Ruderich simon at ruderich.com
Wed Aug 15 12:30:45 PDT 2007


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

N_Ox wrote:
> 
> ${version} is not a pattern, your thing will be ${name}4.3 for example.
> So if the newest version available, the regex will not match and port
> will be unable to tell the user a new version is available or not.
> 
> I try to as precise as possible in my livechecks, with something like:
> (\d+(?:\.\d+)*)
> 
> Regards,
> 
> -- 
> Anthony Ramine, the infamous MacPorts Trac slave.
> nox at macports.org

You are right, of course. Stupid of me not to consider that the regex
doesn't match when there is a different version.

Thanks for the hint ;-)
Simon
- --
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGw1RkYRX4BO+zMikRCoK7AKDAa1nYzFUAWq8k3b6c1TJW0Y0znQCgi5Kv
GlUiq/2O6lUr/5HU60cvnEY=
=J9Xj
-----END PGP SIGNATURE-----



More information about the macports-dev mailing list