Hi Lakshmi,
I hope you don't mind me replying on list since I think this is useful
discussion for others too...
One thing. We have, in some cases, modified the cabal files to remove hard dependencies like a==1.0. I am assuming that this package will consider cabal file as it is in the package. Good point: in fact it is a problem: by default cblrepo reads packages from hackage's index directly.
Though cblrepo supports patches also, and can also read .cabal files
but my script doesn't handle that yet.
Could you explain a bit more on "making cbl-repo ghc-pkg aware"? Actually I had naively been thinking that metadata from ghc-pkg would be
sufficient to bootstrap cblrepo.db but I guess it is not: also from above.
I still think it would be nice if cblrepo could read the installed packages
from ghc-pkg, but without using patches as you say it may not work 100%.
I suspect with ghc-7.2 coming there may be more patches needed too, hmm.
Jens