summaryrefslogtreecommitdiff
path: root/dh_usrlocal
diff options
context:
space:
mode:
authorjoey <joey>2005-07-20 14:09:02 +0000
committerjoey <joey>2005-07-20 14:09:02 +0000
commit1b4a4bb37859d047d31e36fca733e7828377fd85 (patch)
treea82002953790774a85d634cf35f2d8ffd56ad39b /dh_usrlocal
parentc64e5bced6f7114f228d90e2857b0ebb9bbf3baa (diff)
r1776: * dh_usrlocal: generate prerm scripts that do not remove distroties in
/usr/local, but only subdirectories thereof, in accordance with policy. Closes: #319181
Diffstat (limited to 'dh_usrlocal')
-rwxr-xr-xdh_usrlocal1
1 files changed, 1 insertions, 0 deletions
diff --git a/dh_usrlocal b/dh_usrlocal
index da70949..edfc0aa 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",