[Dbconfig-common-devel] Re: dbconfig-common - short question

Karsten Hilbert Karsten.Hilbert at gmx.net
Sun Feb 12 14:39:06 UTC 2006


On Sun, Feb 12, 2006 at 12:58:16PM +0100, RKI Andreas wrote:

> >Put mysql-server into Recommends: of "your-app-client".
> >Create a package "your-app-server". During installation of
> >your package "your-app-client" ask whether the user wants a
> >local server. If so, schedule an "apt-get your-app-server".
> >"your-app-server" should then bootstrap a local database.
> 
> Unfortunately there is currently no solution in apt to
> "schedule" such a thing.  You can not call apt-get from
> apt-get.  You can only advise the user he should call
> apt-get once the current apt-get job is finished which is
> not very elegant.

At the end of the day, of course, it's the job of the
failing application to advise the user about possible
reasons for it failing along the lines of:

"The server you were trying to connect to does not respond.
 Please make sure there's a server running at the given
 address. If you want to run a local server you might need to
 install and configure the "your-app-server" package."

This can be much refined by an application taking care of
its users. It could differentiate between local/remote
servers. It could even check for the install status of a
local server package.

I don't think dbc should play fixup for user-unfriendly
apps. It should suggest reasonable strategies but needn't go
out of it's way.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



More information about the Dbconfig-common-devel mailing list