From bec75e8b10701f4142a1cdfe6c047a6dd1e5b2e4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 18 Jun 2008 20:37:56 -0400 Subject: Fix backwards test for AVOID_COMMIT_BEFORE_INSTALL. Closes: #486922 --- debian/changelog | 6 ++++++ pre-install.d/50uncommitted-changes | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0a7638a..207f6bc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +etckeeper (0.17) unstable; urgency=low + + * Fix backwards test for AVOID_COMMIT_BEFORE_INSTALL. Closes: #486922 + + -- Joey Hess Wed, 18 Jun 2008 20:36:52 -0400 + etckeeper (0.16) unstable; urgency=low * Add a AVOID_COMMIT_BEFORE_INSTALL option in the config file to make it diff --git a/pre-install.d/50uncommitted-changes b/pre-install.d/50uncommitted-changes index 465b06c..0d82419 100755 --- a/pre-install.d/50uncommitted-changes +++ b/pre-install.d/50uncommitted-changes @@ -10,7 +10,7 @@ if [ "$1" = "fail-debconf" ]; then fi if etckeeper unclean; then - if [ ! "$AVOID_COMMIT_BEFORE_INSTALL" ]; then + if [ "$AVOID_COMMIT_BEFORE_INSTALL" ]; then echo "error: etckeeper detected uncommitted changes in /etc prior to $HIGHLEVEL_PACKAGE_MANAGER run" >&2 exit 1 fi -- cgit v1.2.3