]> andersk Git - config-package-dev.git/commitdiff
Undivert on deconfigure, not just on remove
authorGeoffrey Thomas <geofft@mit.edu>
Tue, 25 Sep 2012 16:52:28 +0000 (12:52 -0400)
committerGeoffrey Thomas <geofft@mit.edu>
Tue, 25 Sep 2012 17:21:12 +0000 (13:21 -0400)
See http://debathena.mit.edu/trac/ticket/388 for discussion. There are
more cases to think through here, but adding the deconfigure behavior is
correct and the most useful.

divert.mk

index d352554f540a61ced32f6ea13f2ee640228cd897..10e3c3871d933ff12df3f432395547d30b1e72d7 100644 (file)
--- a/divert.mk
+++ b/divert.mk
@@ -99,7 +99,7 @@ $(patsubst %,debian-divert/%,$(DEB_DIVERT_PACKAGES)) :: debian-divert/%:
                fi;) \
            sed 's/#PACKAGE#/$(cdbs_curpkg)/g; s/#DEB_DIVERT_EXTENSION#/$(DEB_DIVERT_EXTENSION)/g' $(DEB_DIVERT_SCRIPT); \
            $(if $(divert_files_thispkg), \
-               echo 'if [ "$$1" = "remove" ]; then'; \
+               echo 'if [ "$$1" = "remove" ] || [ "$$1" = "deconfigure" ]; then'; \
                $(foreach file,$(call reverse_dh_compat_6,$(divert_files)), \
                    echo "    undivert_unlink $(call divert_files_replace_name,$(file), )";) \
                $(foreach file,$(call reverse_dh_compat_6,$(divert_remove_files)), \
This page took 0.347099 seconds and 5 git commands to generate.