Le mercredi 03 mars 2010, Davide Prina a écrit : > Tanguy Ortolo wrote: >> For some reason, this has failed with your install. If you have kept >> your old tpl_old directory, can you send a listing of all files it >> contains, including hidden ones? If it contains a hidden file, this >> would be the reason: the transition code does not handle dotfiles, I >> think. > > # ls -laR /usr/share/dokuwiki/lib/tpl_old > /usr/share/dokuwiki/lib/tpl_old: > totale 16 > drwxr-xr-x 4 www-data www-data 4096 3 mar 20:07 . > drwxr-xr-x 8 www-data www-data 4096 3 mar 20:55 .. > drwxr-xr-x 5 www-data www-data 4096 19 set 2008 dokukiwix_old > drwxr-xr-x 3 www-data www-data 4096 30 giu 2007 offline
So it was not that. :-( I think this will be very difficult to reproduce, as it may come as a legacy side effect from very old versions that lie between oldstable and stable ones. Indeed, the postinst transition code is only triggered on updates from a version anterior to the one that changed the templates directory. As long as I could probe it, the oldstable → stable → testing path is safe. The oldstable → stable → [some old testing package] → testing should be, as the transition code is the same on stable and [some old testing package]. I suspect that, for some reason I still do not understand, your installation kept templates in both /usr/share and /var/lib on a version where they sould only be under /var/lib. This case was not not handled at all, but resulted in your old template directory being kept with the default templates and your additions. Recently, I changed the transition code, that had nasty problems, and this case is still not handled, but with the new code, resulted in the old template directory being kept with only your additions. I cannot reproduce it, and I think you will neither be able to do so unless you kept a copy of all the package versions you installed… However, I think I know how to make the transition code stronger in order to prevent that from happening with other people. -- Tanguy Ortolo
signature.asc
Description: Digital signature

