Bug#894549: debhelper: dh_usrlocal may remove a direct subdirectory of /usr/local

2018-04-07 Thread Niels Thykier
On Fri, 6 Apr 2018 21:37:39 +0200 Nicolas Boulenguez wrote: > > use the "hashref" based autoscript? > > The attached updated diff switches > from strings and sed expressions > back to arrays (again) and hashrefs (new). > Ok. Thanks for doing the hashref rewrite. :)

Bug#894549: debhelper: dh_usrlocal may remove a direct subdirectory of /usr/local

2018-04-06 Thread Nicolas Boulenguez
> use the "hashref" based autoscript? The attached updated diff switches from strings and sed expressions back to arrays (again) and hashrefs (new). > The "justdirs" is supposed to be in "opposite" order of "dirs" > ("justdirs" are in "removal order" while "dirs" are in "creation order") > but

Bug#894549: debhelper: dh_usrlocal may remove a direct subdirectory of /usr/local

2018-04-04 Thread Niels Thykier
On Wed, 04 Apr 2018 18:29:00 + Niels Thykier wrote: > On Mon, 2 Apr 2018 16:53:52 +0200 Nicolas Boulenguez > wrote: > > Package: debhelper > > Followup-For: Bug #894549 > > > > Hello. > > > > This new diff should fix the same issues in dh_usrlocal. >

Bug#894549: debhelper: dh_usrlocal may remove a direct subdirectory of /usr/local

2018-04-04 Thread Niels Thykier
On Mon, 2 Apr 2018 16:53:52 +0200 Nicolas Boulenguez wrote: > 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

Bug#894549: debhelper: dh_usrlocal may remove a direct subdirectory of /usr/local

2018-04-03 Thread Nicolas Boulenguez
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

Bug#894549: debhelper: dh_usrlocal may remove a direct subdirectory of /usr/local

2018-04-01 Thread Nicolas Boulenguez
Package: debhelper Version: 11.1.6 Severity: minor Tags: patch Hello. The attached script shows that dh_usrlocal generates a prerm script removing a direct subdirectory of /usr/local. As I understand the policy, it should not. The fix is included. It also suggests some minor related changes,