(#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.
Merge pull request #1982 from kylog/issue/stable/22810-rpm-provider-query-method-returns-leading-quote

(#22810) Fix rpm provider query method