severity 389806 important
thanks

On Wed, Sep 27, 2006 at 11:02:32PM +0200, Bill Allombert wrote:
> On Wed, Sep 27, 2006 at 09:50:17PM +0100, Isaac Clerencia wrote:
> > On Wednesday, 27 September 2006 21:07, Bill Allombert wrote:
> > > Package: moodle
> > > Version: 1.6.2-1
> > > Severity: serious
> > >
> > > Hello Isaac,
> > >
> > > There is an error when attempting to install moodle:
> > >   Setting up moodle (1.6.2-1) ...
> > >
> > >   Creating config file /etc/moodle/config.php with new version
> > >   ln: creating symbolic link `/etc/apache/conf.d/moodle' to
> > > `/etc/moodle/apache.conf': No such file or directory dpkg: error 
> > > processing
> > > moodle (--configure):
> > >    subprocess post-installation script returned error exit status 1
> > Did you get the debconf dialog to ask you which server do you wanted to 
> > configure?

> It was non-interactive install, so no.

Priorities
       [...]
       high   Questions that don't have a reasonable default.

debconf(7)

There is no release requirement that a package be installable when
high-priority debconf questions are skipped.

> > Did you choose apache 1? Do you have apache installed?

> Neither. The offending code is there:

>         if [ ! -e /etc/${webserver}/conf.d/moodle ]
>         then
>            ln -s /etc/moodle/apache.conf /etc/${webserver}/conf.d/moodle
>         fi

> Either check /etc/${webserver}/conf.d/ exist or mkdir it.

That would still result in an unusable package if the webserver chosen in
the debconf interface is not the one actually installed; so there's no
reason that mkdir (postponing the failure) is inherently preferable to an
immediate failure in the maintainer script.

Of course, the debconf default should probably at least be changed to match
the dependency default (i.e., apache2).

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to