(#22810) Fix rpm provider query method

Background: commit e96ac6b6abb9f387e9b8cd097b024aaa4bc656ee inadvertently
broke the rpm provider query method by wrapping the format in both single
quotes and surrounding double quotes.

This patch restores the quoting behavior prior to the above commit
while preserving the additional field introduced in that commit.