From 1b4a4bb37859d047d31e36fca733e7828377fd85 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 20 Jul 2005 14:09:02 +0000 Subject: r1776: * dh_usrlocal: generate prerm scripts that do not remove distroties in /usr/local, but only subdirectories thereof, in accordance with policy. Closes: #319181 --- debian/changelog | 5 ++++- dh_usrlocal | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 33b11ca2..f0ec9c36 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,11 @@ debhelper (4.9.5) UNRELEASED; urgency=low * dh_install: in v5 mode, error out if there are wildcards in the file list and the wildcards expand to nothing. Done only for v5 as this is a behavior change. Closes: #249815 + * dh_usrlocal: generate prerm scripts that do not remove distroties in + /usr/local, but only subdirectories thereof, in accordance with policy. + Closes: #319181 - -- Joey Hess Tue, 19 Jul 2005 13:48:52 -0400 + -- Joey Hess Wed, 20 Jul 2005 10:08:05 -0400 debhelper (4.9.4) unstable; urgency=low diff --git a/dh_usrlocal b/dh_usrlocal index da709491..edfc0aa1 100755 --- a/dh_usrlocal +++ b/dh_usrlocal @@ -99,6 +99,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # This constructs the body of a 'sed' c\ expression which # is parsed by the shell in double-quotes my $dirs = join("$ebs\n", @dirs); + pop @justdirs; # don't remove directories in /usr/local my $justdirs = join("$ebs\n", @justdirs); if (! $dh{NOSCRIPTS}) { autoscript($package,"postinst", "postinst-usrlocal", -- cgit v1.2.3