[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-haskell-commits] darcs: ghc: ghc-doc package includes /usr/lib/ghc-doc/hoogle/*.txt files.



Hi, Joachim.

On Thu, Oct 11, 2012 at 1:06 AM, Joachim Breitner <nomeata@debian.org> wrote:
>> I am afraid of not finding libghc-xxx-doc contents upgraded by
>> update-hoogle command.
>
> I can’t follow. I thought you are converting all .txt files to .hoo
> files anyways on each update? You just have to look at all the files
> in /usr/lib/ghc-doc/hoogle and, if you need to find out the location of
> the html files, “readlink” them.

Sorry, it's my needless fear.
Hoogle package can find the changes with deb-trigger and symlink.

$ cat /var/lib/dpkg/info/hoogle.triggers
interest /usr/lib/ghc-doc/hoogle # <= hoogle watches /usr/lib/ghc-doc/hoogle.
$ sudo dpkg -i libghc-hcwiid-doc_0.0.1-3_all.deb
(Reading database ... 597977 files and directories currently installed.)
Preparing to replace libghc-hcwiid-doc 0.0.1-3 (using
libghc-hcwiid-doc_0.0.1-3_all.deb) ...
Unpacking replacement libghc-hcwiid-doc ...
Setting up libghc-hcwiid-doc (0.0.1-3) ...
Processing triggers for ghc-doc ...
Processing triggers for hoogle ... # <= hoogle is triggered at first time.
Starting keyword
hoogle: download/keyword.txt: hGetContents: invalid argument (invalid
byte sequence)
Converting databases... done
Combining 2 databases
$ ls /usr/lib/ghc-doc/hoogle
hcwiid.txt@  hoogle.txt@
$ sudo dpkg -i libghc-hcwiid-doc_0.0.1-3_all.deb
(Reading database ... 597977 files and directories currently installed.)
Preparing to replace libghc-hcwiid-doc 0.0.1-3 (using
libghc-hcwiid-doc_0.0.1-3_all.deb) ...
Unpacking replacement libghc-hcwiid-doc ...
Setting up libghc-hcwiid-doc (0.0.1-3) ...
Processing triggers for ghc-doc ...
Processing triggers for hoogle ... # <= hoogle is triggered again.
Starting keyword
hoogle: download/keyword.txt: hGetContents: invalid argument (invalid
byte sequence)
Converting databases... done
Combining 2 databases

The hoogle patch will be created on this holiday.

Regards,
-- 
Kiwamu Okabe


Reply to: