Don't pass LocalBuildInfo to per-compiler registerPackage functions
Rather, pass the individual bits we need, which is the program db and in some cases the compiler. This is a step towards having the main registerPackage not take the LocalBuildInfo. That is useful in contexts like cabal-install where we do not have a full LocalBuildInfo, but we still want to be able to register packages in a compiler-agnostic way.
Showing with 31 additions and 27 deletions