Hi,

Yes, this works.

Could you please:

(1) replace

  or die "error: empty control file";

with

  or return $self->_prserr(PRS_FATAL_ERR, "error: empty control file");

in the line 248 of DocBaseFile.pm


(2) and then send me output of the following command (run as root):

  /usr/sbin/install-docs --install-all


The command should register all the valid doc-base files and print names
of the invalid ones.

The output of install-docs --install-all is:

Error in `/usr/share/doc-base/debrecipes-es', line 3: error: empty control file Error in `/usr/share/doc-base/angband-doc', line 21: format html already defined
  Removing 18 registered documents
  Registering 340 installed documents

Now of course doc-base installs without problems and prints the corresponding warnings.

I'm attaching the control files for debrecipes-es and angband-doc, just for reference, but the problems are trivial, if I'm not mistaken:

* debrecipes-es is an old Spanish-language package, long removed from the Debian archive, which I still have in the `Obsolete and locally installed' part of my system. The trouble seems to have been the duplicate `Title:' field, in fact renaming the second such line `Title-es: Recetas Debian', as it was probably meant,

  install-docs --install /usr/share/doc-base/debrecipes-es

works without problems and I can access the information with dhelp. Maybe I'm the only one having this package installed, so the bug is not *that* important :)

* angband-doc is in the archive, the warning is probably due to there being three (!) HTML sections in the control file (there should be only one if I interpret correctly the doc-base manual), but this does not break doc-base. I can send a wishlist bug report about angband-doc if this is right.

Thank you a lot,
                                      Miguel Aguado


Document: angband-doc
Title: Documentation for Angband
Author: Various
Abstract: Angband is a single-player, text-based, dungeon 
 simulation derived from the game Moria, which was in turn based on 
 Rogue. This package contains additional documentation and spoilers 
 for the game. 
 Angband has been written by several generations of programers over 
 the years, and is derived from an earlier game called moria, and the 
 documentation has been (often haphazadrly) accumulated over time as 
 well.
Section: Games/Adventure

Format: HTML
Index: /usr/share/doc/angband-doc/angfaq1.html
Files: /usr/share/doc/angband-doc/angfaq1.html

Format: HTML
Index: /usr/share/doc/angband-doc/angfaq2.html
Files: /usr/share/doc/angband-doc/angfaq2.html

Format: text
Files: /usr/share/doc/angband-doc/angfaq1.txt.gz

Format: text
Files: /usr/share/doc/angband-doc/angfaq2.txt.gz

Format: HTML
Index: /usr/share/doc/angband-doc/index.html
Files: /usr/share/doc/angband-doc/news.html
       /usr/share/doc/angband-doc/bugs.html
       /usr/share/doc/angband-doc/mods.html
       /usr/share/doc/angband-doc/auto.html
       /usr/share/doc/angband-doc/email.html
       /usr/share/share/doc/angband-doc/links.html
       /usr/share/doc/angband-doc/files.html 

Document: debrecipes-es
Title: Debian tips and tricks
Title: Recetas Debian
Author: Jaime E. Villate
Abstract: The Debian "tips and tricks" is a collection of
 documents provided by Debian users to aid other users
 by documenting some common (sometimes obscure) taks.
 These documents are provided at www.laespiral.org and
 are currently in Spanish only.
Abstract-es: Las Recetas Debian es una colección de documentos
 ofrecidos por los usuarios de Debian a otros usuarios.
 Las recetas documentan algunas tareas comunes (y a veces
 algo complejas).
Section: Debian

Format: HTML
Index: /usr/share/doc/debrecipes-es/index.html
Files: /usr/share/doc/debrecipes-es/*.html

Reply via email to