[packagedb-cli] Extend the fix of name_only