[Pkg-roundcube-maintainers] roundcube update script

Vincent Bernat bernat at debian.org
Sun Mar 22 17:02:31 UTC 2015


 ❦ 22 mars 2015 12:44 +0100, Sandro Knauß <bugs at sandroknauss.de> :

>> > dpkg-maintscript-helper rm_conffile /etc/roundcube/main.inc.php
>> > 1.0.0+dfsg.1-1~ roundcube -- "$@"
>> 
>> I didn't have a look exactly, but the binary package owning the
>> configuration files is roundcube-core. roundcube is just a metapackage,
>> it does nothing on its own and doesn't have any file.
>
> I tried both names but nothing happens. Btw the config files are not listed 
> with ucf:
> # ucfq roundcube
> Configuration file                            Package         Exists Changed
> /etc/dbconfig-common/roundcube.conf           roundcube           Yes     No
>
> # ucfq roundcube-core
> # 
>
> So the db configfile is registed as configfile for roundcube; main.inc.php and 
> db.inc.php are not listed. Maybe that is the core of the problem ?

db.inc.php is a regular conffile. It should be removed if unmodified
with dpkg-maintscript-helper. It belongs to roundcube-core.

main.inc.php is not a conffile, so it is not handled by
dpkg-maintscript-helper (I didn't realize that until now).

/etc/dbconfig-common/roundcube.conf is attached to roundcube, I suppose,
because we tell dbconfig-common that we are "roundcube". I didn't want
to change to roundcube-core and handle a migration of the
database. Reading a bit about ucfq, I see that if we want to associate a
file to a package, we have to use ucfr.

So:

 1. db.inc.php should be removed with dpkg-maintscript-helper (it is
    attached to roundcube-core). If that doesn't work, don't bother too
    much.

 2. main.inc.php could be replaced by a file (with ucf) with an empty
    file with a comment "# This file is not used anymore and can be
    removed". If the file is unmodified, the user will not be prompted
    and can remove the file in the future. If it is modified, they will
    get a ucf prompt about this. However, if you think this is too
    complex, just leave it as is. A NEWS entry telling that those files
    have been migrated and can be removed if everything works as
    expected will be just fine.

If your changes work as expected, feel free to merge them into
master. You can also upgrade to the latest roundcube version (with gbp
import-orig --uscan, so that "non free" files are removed).

The main idea is to upload your work as long as it doesn't destroy user
configuration. Additional quirks can be solved when users report
them.
-- 
I'll burn my books.
		-- Christopher Marlowe
-------------- 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/20150322/f0569f81/attachment.sig>


More information about the Pkg-roundcube-maintainers mailing list