On Mon, Mar 14, 2011 at 10:18:08PM +0100, Robert Luberda wrote: > Package: dictionaries-common-dev > Version: 1.10.2 > Severity: normal > > > Hi, > > > While experimenting with using `auto-hash' entries for ibritish/iamerican > packages, I've found that a dictionary package fails to install when > the following conditions are met: > > - dictionary provided in the package is selected as the default one > - /var/lib/ispell/$dict.hash file doesn't exist (e.g. this is an > initial install, the file is not provided by the package itself, and > ispell-autobuildhash hasn't been run yet). > > > The autogenerated posinst contains the following: > > # Automatically added by installdeb-ispell > dico_class="ispell" > dico_compat="british.compat british-huge.compat british-large.compat > british-small.compat" > > for i in $dico_compat; do > >"/var/lib/$dico_class/$i" > done > > > It seems that the existance of the default link is checked before > ispell-autobuildhash got a chance to be called, so I think sth like > the following should be added to postinst (and I've just checed that > it actually solves the problem): > > hash_files="................" > for i in $hash_files; do > touch "/var/lib/$dico_class/$i" # or >"/var/lib/$dico_class/$i", > # if it's OK to overwrite the file > contents, It probably > # should be fine, as > ispell-autobuildhash will overwrite it anyway > done
Hi, Robert, thanks for debugging, I have moved ispell-autobuildhash call at update-default-ispell before the symlinking step. I'd expect this to also fix the problem. -- Agustin -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

