Hi Helge,

Helge Kreutzmann [2006-06-29 21:33 +0200]:
> > postgresql-8.1 is completely independent of postgresql-7.4, and I
> > would like to completely drop the knowledge (and code) to support the
> > old sarge layout at some point.
> 
> Well, technically speaking this would be Etch+epsilon, as skipping stable
> releases is not supported.

Right; that's what we did in Ubuntu, we could drop the transitional
package after the first stable release with the new infrastructure,
and all that was left was a clean packaging. :)

> > > c) 8.1 detects the broken logrotate and informs the admin how to fix
> > >    it manually (again, via debconf but preferably including either d)
> > >    or e) as well)
> > 
> > This is my favourite option so far. What I would *really* want is a
> > Conflicts: field that says 'won't work even with the package's
> > conffile still in place'. Since we do not have that, my proposal is to
> > add a small check into postgresql-{7.4,8.1}'s preinst which
> > immediately fails if the old postgresql package is still present, and
> > tell the admin to either purge them first, or install the transitional
> > packages. This would avoid code duplication and more evil hacks, while
> > informing the admin about the situation rather than silently breaking.
> 
> Well, as long as you check if it is present *or* in RC state, i.e.
> some files might be laying around, then I agree with this solution.

Great! Then I'm going to implement it.

> Do I understand correctly. To properly fix this, I simply issue
> apt-get install postgresql
> apt-get --purge remove postgresql

Either is fine. Both purging the 7.4.x postgresql package (which will
remove the conffiles and data) and installing the transitional 7.5.x
package (which will move them to their new places and such) will
result in a clean system.

> > Would that be ok for you?
> 
> Yes, if *RC* is considered.

Indeed RC is the *only* issue here. Up-to-date installed and purged
are fine, and old-installed (7.4.x) is covered with the Conflicts: and
apt automatically upgrading.

Thanks,

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?

Attachment: signature.asc
Description: Digital signature

Reply via email to