teacup search

This teacup subcommand searches the package metadata database.

[TODO: describe the search syntax...]

This wonders me:

D:\Home\Arbeit1\Downloads>teacup search --at-default eq name pngtcl and le version 1.4.8
entity  name   version   platform
------- ------ --------- ----------
package pngtcl 1.2.24    win32-ix86
package pngtcl 1.2.34    win32-ix86
package pngtcl 1.4.1     win32-ix86
package pngtcl 1.4.2     win32-ix86
package pngtcl 1.4.2.0.3 win32-ix86
package pngtcl 1.4.3     win32-ix86
package pngtcl 1.4.8     win32-ix86
package pngtcl 1.4.12    win32-ix86
------- ------ --------- ----------
8 entities found

Why is version 1.4.12 less then 1.4.8 ??


ak - 2012-11-12 02:54:45

Lexical comparison, "1" < "8". Not numeric, nor dict comparison, nor 'package vcompare'. 'le' is a generic string compare.