Fix logic.
Merge pull request #91 from fedora-infra/feature/pkgdb2-fix

Fix logic.