determine_pkg_source function

Determine the intended source of a new package