#1726 Question about versions

DanielFath Sun 11 Dec 2011

If I define depends = ["sys 1.0+"] will that capture 1.x version or just 1.0.x? Will it capture 2.0+.

brian Mon 12 Dec 2011

Hi Daniel,

The plus sign matches anything greater than. So "1.0+" will match anything 1.0 or greater:

fansh> Depend("sys 1.0+").match(Version("1.0.99"))
true
fansh> Depend("sys 1.0+").match(Version("1.2"))
true
fansh> Depend("sys 1.0+").match(Version("2.0"))
true
fansh> Depend("sys 1.0+").match(Version("0.9"))
false

Login or Signup to reply.