[Pkg-roundcube-maintainers] roundcube update script

Vincent Bernat bernat at debian.org
Thu Mar 19 06:20:41 UTC 2015


 ❦ 19 mars 2015 01:27 +0100, Sandro Knauß <bugs at sandroknauss.de> :

> I now have a postinst script that should work.
> I tested against a simple update of clean 0.9.5 -> 1.0.0 that works without 
> any user questions.
>
> Because the old config files are still available i think it is okay to release 
> such an state to experimental, because users can look at there old config at 
> anytime. Do I have to remove the old configfile and/or unregister
> them?

Yes, remove them with dpkg-maintscript-helper. This handles most of the
thinks for you.

> Now the db update. There is also an upstream script thats doing the db update 
> bin/updatedb.sh and there is dbconfig. dbconfig creates backup, so that should 
> be recommended. but how this dbconfig thing works? How you did that in the 
> past?

The dbconfig stuff just needs upgrade SQL files. Look at the `sql/`
directory in `debian/`. The files are just a copy of the appropriate
files in `SQL/` (with concat when there are several of them matching the
version change). In the past, there have been some glitches because I
forgot an upgrade file (don't remember exactly) and this explains some
upgrade steps in the postinst to fix that.
-- 
Each module should do one thing well.
            - The Elements of Programming Style (Kernighan & Plauger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-roundcube-maintainers/attachments/20150319/ad3a7f52/attachment.sig>


More information about the Pkg-roundcube-maintainers mailing list