The dnf packages aren't parsed if rpm isn't in PACKAGE_CLASSES which means
the aintainers test failes for OE-Core (where ipk is the default) but not
for poky (where the default is rpm).
Ensure PACKAGE_CLASSES is set so it works in all cases.
[YOCTO #14277]
(From OE-Core rev: 842b11107363357ed933cfcf619f1cf23f0d841e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>