gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] Re: GNUmed packaging help needed


From: Andreas Tille
Subject: [Gnumed-devel] Re: GNUmed packaging help needed
Date: Mon, 9 Mar 2009 13:26:54 +0100 (CET)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

On Mon, 9 Mar 2009, Karsten Hilbert wrote:

On Mon, Mar 09, 2009 at 12:11:10PM +0100, Karsten Hilbert wrote:

If you aren't fully convinced that it is hard to automate
correctly you could, by definition, simply do it, no ? :-)

It's surely possible but it takes quite a bit of code.

Here is some pseudo code:

1) find all PostgreSQL servers on the machine

        - local TCP/IP
        - UNIX domain sockets
        - may not even be running currently

The later is the easiest case - just stop and notify the user about
this fact.

2) within those detect all GNUmed databases

        - skip some, like "postgres" and "templateX"

3) ask user which database in which server to upgrade

4) ask user which version to upgrade to

The question is useless - you can only upgrade to the version which
is contained in the package

        - verify "to > from"

... but this check is reasonable anyway.

5) detect whether existing databases would be overwritten

        - ask user for confirmation

6) generate upgrade script based on the above

In principle this was my initial intention to do (more or less).
It's just a lack of time which prevents me from doing this.

All the tasks above can be solved using debconf (in principle).
I decided that it helps our users if there is a simpler gnumed-server
package sitting in experimental which does not yet contain all this
code for the time beeing.

Kind regards

        Andreas.

--
http://fam-tille.de




reply via email to

[Prev in Thread] Current Thread [Next in Thread]