[debhelper-devel] Bug#894549: debhelper: dh_usrlocal may remove a direct subdirectory of /usr/local

Nicolas Boulenguez nicolas at debian.org
Mon Apr 2 14:53:52 UTC 2018


Package: debhelper
Followup-For: Bug #894549

Hello.

This new diff should fix the same issues in dh_usrlocal.
The result is more readable in my opinion, hopefully preventing
similar errors in the future.

It should also be a bit more efficient: instead of sorting two huge
lists of paths all starting with "/usr/share/", it sorts once simple
names in each directory.

When a normal file is encountered, it displays an error instead of a
warning. This does not change much, as rmdir would fail with a less
explicit message when attempting to remove the containing directory.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dh_usrlocal-topdirs.diff
Type: text/x-diff
Size: 2839 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20180402/a5d3062f/attachment-0001.diff>


More information about the debhelper-devel mailing list