[config-package-dev] [PATCH] Support the 'abort-remove' invocation in the postinst
Jonathan Reed
jdreed at MIT.EDU
Wed Apr 3 10:24:55 EDT 2013
dh_configpackage | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dh_configpackage b/dh_configpackage
index 9d7c117..fcc3abe 100755
--- a/dh_configpackage
+++ b/dh_configpackage
@@ -399,7 +399,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (! $dh{NOSCRIPTS}) {
if (@undisplacefiles || @unhidefiles || @displacefiles || @hidefiles) {
my $postinst = escape_shell(join "\\n", (
- 'if [ "$1" = "configure" ]; then',
+ 'if [ "$1" = "configure" ] || [ "$1" = "abort-remove" ]; then',
(map {" check_undisplace_unlink " . displace_files_replace_name($package, $_, " ")} @undisplacefiles),
(map {" check_undisplace_unhide $_ " . hide_files_name($_, $package)} @unhidefiles),
(map {" displace_link " . displace_files_replace_name($package, $_, " ")} @displacefiles),
--
1.7.9.5
More information about the config-package-dev
mailing list