Bug#635476: Replace ‘htmlfiles’ directory with a symlink on package upgrade

2013-10-07 Thread Dmitry Shachnev
Hi Ben, On Mon, Oct 7, 2013 at 4:50 AM, Ben Finney ben+deb...@benfinney.id.au wrote: I have committed a new revision which removes the platform-dependent directory in preinst, allowing the new release to create it as a symlink to the platform-independent location. Please try this change and

Bug#635476: Replace ‘htmlfiles’ directory with a symlink on package upgrade

2013-10-06 Thread Ben Finney
On 29-Sep-2013, Dmitry Shachnev wrote: On Sun, Sep 29, 2013 at 3:25 PM, Ben Finney ben+deb...@benfinney.id.au wrote: That's why I used ‘rmdir’; if the directory is not empty, that means the directory was not emptied by the package previous version removal (or there are extra files there

Bug#635476: Replace ‘htmlfiles’ directory with a symlink on package upgrade (was: Bug#635476: current packaging work for Coverage 3.6)

2013-09-29 Thread Dmitry Shachnev
On Sat, Sep 28, 2013 at 3:44 PM, Ben Finney ben+deb...@benfinney.id.au wrote: Will this preinst script (attached) do the job correctly? I think you should use rm -rf instead of rmdir, as the latter will fail to remove non-empty directories. Otherwise it looks correct to me (additional testing

Bug#635476: Replace ‘htmlfiles’ directory with a symlink on package upgrade

2013-09-29 Thread Ben Finney
On 29-Sep-2013, Dmitry Shachnev wrote: I think you should use rm -rf instead of rmdir, as the latter will fail to remove non-empty directories. That's why I used ‘rmdir’; if the directory is not empty, that means the directory was not emptied by the package previous version removal (or there

Bug#635476: Replace ‘htmlfiles’ directory with a symlink on package upgrade

2013-09-29 Thread Dmitry Shachnev
On Sun, Sep 29, 2013 at 3:25 PM, Ben Finney ben+deb...@benfinney.id.au wrote: That's why I used ‘rmdir’; if the directory is not empty, that means the directory was not emptied by the package previous version removal (or there are extra files there which aren't owned by the package). Doesn't

Bug#635476: Replace ‘htmlfiles’ directory with a symlink on package upgrade (was: Bug#635476: current packaging work for Coverage 3.6)

2013-09-28 Thread Ben Finney
On 21-Sep-2013, Dmitry Shachnev wrote: Hi Ben, and Barry! Thank you for testing and providing information. I'll address here the clear problem of changing the location of the platform-independent files. Dpkg cannot replace directories with symlinks on package upgrades. I understand; when I