summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rwxr-xr-xetckeeper7
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index bdd2d8c..580d52a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
etckeeper (0.8) UNRELEASED; urgency=low
* Typo fixes from Miklos Vajna
+ * Add backwards compatability code to handle post-apt action. Closes: #459441
-- Joey Hess <joeyh@debian.org> Sat, 05 Jan 2008 00:42:11 -0500
diff --git a/etckeeper b/etckeeper
index e2073ec..81068a1 100755
--- a/etckeeper
+++ b/etckeeper
@@ -33,6 +33,13 @@ fi
command="$1"
shift 1
+# compatability code
+if [ "$command" = "post-apt" ]; then
+ command=post-install
+elif [ "$command" = "pre-apt" ]; then
+ command=pre-install
+fi
+
if [ ! -d "/etc/etckeeper/$command.d" ]; then
echo "etckeeper: /etc/etckeeper/$command.d does not exist" >&2
exit 1