Conditionally fetch packages to build

Only packages that are requested to be built are fetched.

Also, improved output when fetching a package failed.