tags 300440 +patch
thanks
Hi Stefan,
I've tracked this bug and with the vorlon and fatalerror help
i reproduced it this way:
- Install dhelp package;
- Install doc-linux-it package;
- Remove or move /usr/share/doc;
- dpkg-reconfigure doc-linux-it. =)
There's patch below that i think can help you fixing this
problem. If you can't upload a new package soon, since it's a RC
bug let me known and i'll do a NMU with this patch.
Hope that helps,
Gustavo Franco -- <[EMAIL PROTECTED]>
--- dhelp_parse.c 2005-03-24 21:00:36.000000000 -0300
+++ dhelp_parse.c 2005-03-24 21:00:41.000000000 -0300
@@ -776,6 +776,7 @@
int main (int argc, char *argv[])
{
int i;
+ DIR *dir;
char zw[MAXPATHLEN];
char resolv_name[MAXPATHLEN];
@@ -794,6 +795,14 @@
}
else
{
+ if ((dir = opendir (DOCDIR)) == NULL)
+ {
+ fprintf (stderr, "dhelp_parse: I can't open %s, the package "
+ "documentation won't be registered. It's non-fatal.\n\n",
DOCDIR);
+ return (0); /* do not break postinst/postrm scripts */
+ }
+ closedir (dir);
+
mkdir ("/var/lib/dhelp/", 0755);
for (i=2; i < argc; i++)
{
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]