pkg
pkg copied to clipboard
pkg considers 0 > 0 true
It appears that conditional expression evaluation does not always return the result I'd have expected.
Specifically, testing %#r gives wrong results for some (but not all) of my packagesx:
$ pkg query -e "%#d>0 && %#r>0" "%#d %#r %n-%v" | grep " 0 " 2 0 py27-dnspython-1.16.0 2 0 py27-iso8601-0.1.12 2 0 py27-markdown-2.6.11_1 5 0 py27-numpy-1.16.5_1,1 3 0 py27-sqlite3-2.7.17_7 2 0 py37-MarkupSafe-1.1.1 2 0 py37-yaml-5.2
This was observed with pkg-1.12.0_1 on amd64 -CURRENT.
I cannot reproduce, I have added more regression test to reproduce, but without reproduction.
Can you provide the local.sqlite from a db which machine which actually reproduces the bug?