If the pkgdb call fails, return an empty list of packages
Add debugging log if the pkgdb call fails
Generate the URL before calling it, and log it
Merge pull request #8 from fedora-infra/fix_pkgdb2

Fix pkgdb2