getPkgs: Fix return empty return value
Merge pull request #4 from julian-gehring/patch1

getPkgs: Fix return empty return value