Re: How to properly move a file from a .deb to another one ?
Xavier Roche <email@example.com> writes:
> swin von Brederlow a écrit :
>>> *BUT* note that /usr/share/doc/httrack/html is actually a simlink to
>>> ../../httrack/html (the reason is BUG 362836, which pointed that
>> You mean ../../../httrack/html, right?
> No, this is ../../html (jumping two levels teleports you to /usr/share - the html level does not count :p)
>> If /usr/share/doc/httrack/html is a symlink then you should not have
>> any files in it in the deb.
> Correct - and there are definitely files in this directory.
>> You did something seriously wrong there to
>> make this happen, like create the link in preinst but also have the
>> dir in the package or something.
> I think the problem is that the webhttrack.files contained a "usr/share/doc/httrack/html/server" line (instead of "usr/httrack/html/server"), and the dh_* scripts saw it as a "true" directory.
> Darn, this is a vicious packaging bug.. playing with the <new-preinst upgrade old-version> might be the solution to kick the simlink ?
Be carefull and check with policy and packaging manual on this.
Changing between link and dir is a complicated thing to do.