summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-18 20:37:56 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-18 20:37:56 -0400
commitbec75e8b10701f4142a1cdfe6c047a6dd1e5b2e4 (patch)
tree2e36b009fd98839aea5ec4c2a510ac20db8bc57d
parentcbcf21be2ee630c9e3b78e50e6184abbc08d1930 (diff)
Fix backwards test for AVOID_COMMIT_BEFORE_INSTALL. Closes: #486922
-rw-r--r--debian/changelog6
-rwxr-xr-xpre-install.d/50uncommitted-changes2
2 files changed, 7 insertions, 1 deletions
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 <joeyh@debian.org> 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