Re: ghc 6.10 and provides
On Sun, Apr 05, 2009 at 04:24:56PM -0700, David Fox wrote:
> On Sun, Apr 5, 2009 at 3:40 PM, Trent W. Buck <email@example.com> wrote:
>> Kari Pahula <firstname.lastname@example.org> writes:
>>> Though now I'm thinking that it's not generally a good idea to
>>> expect an one to one mapping from cabal names to libghc6-*-dev
>>> names anyway, but better to look at what files you are using and
>>> what package they belong to.
>> cabal-debian could do this using apt-file(1), I guess.
> Currently cabal-debian uses the debOfFile function in
> Distribution.Package.Debian, which looks at
> /var/lib/dpkg/info/*.list to compute which package a file is in.
If that's the same as dpkg -S (or dlocate), then it's inferior to
apt-file in that apt-file can tell you about packages that aren't
installed. I'd also expect apt-file to be faster as the entire
database is stored in a single file, rather than one per package.