From 0187785414332e115500861ca1c78c664b7fb499 Mon Sep 17 00:00:00 2001
From: David Bremner <david@tethera.net>
Date: Thu, 3 Aug 2017 09:20:37 -0400
Subject: [PATCH] debian: add maintainer scripts to remove old startup file

We do it for notmuch and notmuch-emacs because the history is a bit
unclear. It seems to be safe to call when that conffile is not owned
by a given package
---
 debian/notmuch-emacs.maintscript | 1 +
 debian/notmuch.maintscript       | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 debian/notmuch-emacs.maintscript
 create mode 100644 debian/notmuch.maintscript

diff --git a/debian/notmuch-emacs.maintscript b/debian/notmuch-emacs.maintscript
new file mode 100644
index 00000000..6f93feb7
--- /dev/null
+++ b/debian/notmuch-emacs.maintscript
@@ -0,0 +1 @@
+rm_conffile /etc/emacs/site-start.d/50notmuch.el
diff --git a/debian/notmuch.maintscript b/debian/notmuch.maintscript
new file mode 100644
index 00000000..6f93feb7
--- /dev/null
+++ b/debian/notmuch.maintscript
@@ -0,0 +1 @@
+rm_conffile /etc/emacs/site-start.d/50notmuch.el
-- 
2.45.2