Fix search packages with package type

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>