From 3371831548da8bacd2a7245252a6a151b30060bb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 31 Jan 2010 14:37:07 -0500 Subject: Fix cleanup of /var/cache/etckeeper/packagelist.pre-install after an upgrade where no conffiles are changed. --- post-install.d/50vcs-commit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'post-install.d/50vcs-commit') diff --git a/post-install.d/50vcs-commit b/post-install.d/50vcs-commit index 12fd187..6cb6bd1 100755 --- a/post-install.d/50vcs-commit +++ b/post-install.d/50vcs-commit @@ -13,8 +13,11 @@ if etckeeper unclean; then if [ -n "$diff" ]; then message="$message$NL${NL}Package changes:$NL$diff" fi - rm -f $pl.pre-install fi etckeeper commit "$(printf "$message")" fi + +if [ -e $pl.pre-install ]; then + rm -f $pl.pre-install +fi -- cgit v1.2.3