From bfd3d600a8c75cb9f903a53b819f4cf593c25428 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 15 Apr 2010 11:50:28 -0400 Subject: Fix logic error in darcs user code. Closes: #577918 --- commit.d/50vcs-commit | 2 +- debian/changelog | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit index a2651bb..ce6c899 100755 --- a/commit.d/50vcs-commit +++ b/commit.d/50vcs-commit @@ -51,7 +51,7 @@ elif [ "$VCS" = bzr ] && [ -d .bzr ]; then elif [ "$VCS" = darcs ] && [ -d _darcs ]; then logfile="$(mktemp -t etckeeper-$VCS.XXXXXXXXXX)" printf "%b" "$message" > "$logfile" - if [ -n "$USER" ]; then + if [ -z "$USER" ]; then USER=root fi if [ -n "$message" ]; then diff --git a/debian/changelog b/debian/changelog index 46c730f..f0a4ad6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,10 @@ -etckeeper (0.45) UNRELEASED; urgency=low +etckeeper (0.45) unstable; urgency=low * Revert darcs to using --logfile again, necessary for multiline commit messages. Closes: #577915 + * Fix logic error in darcs user code. Closes: #577918 - -- Joey Hess Thu, 15 Apr 2010 11:48:37 -0400 + -- Joey Hess Thu, 15 Apr 2010 11:50:22 -0400 etckeeper (0.44) unstable; urgency=low -- cgit v1.2.3