+ $(if $(dh_compat_6), \
+ if [ -e $(CURDIR)/debian/$(cdbs_curpkg).prerm.debhelper ]; then \
+ cat $(CURDIR)/debian/$(cdbs_curpkg).prerm.debhelper; \
+ fi;) \
+ } >> $(CURDIR)/debian/$(cdbs_curpkg).prerm.debhelper.new
+ mv $(CURDIR)/debian/$(cdbs_curpkg).prerm.debhelper.new \
+ $(CURDIR)/debian/$(cdbs_curpkg).prerm.debhelper
+# Add an encoding of the names of the diverted files to the Provides:
+# and Conflicts: lists. This prevents two packages diverting the same
+# file from being installed simultaneously (it cannot work, and this
+# produces a much less ugly error). Requires in debian/control:
+# Provides: ${diverted-files}
+# Conflicts: ${diverted-files}
+ set -e; \
+ { \