Fixed a bug when pkg_type is source

Also remove all gppkg packages at the beginning