Using ensure_packages instead of ensure_resource

The ensure_packages function is slightly more relevant than ensure_resource here. (Used only on mercurial package in community thing).