From 287d4db96fcf4ab55a5665950080392313a35632 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Wed, 21 Jul 2010 10:13:18 +0000 Subject: The temporary file needs only be removed in the no changes case. svn path=/emacs-overlay/; revision=1505 --- eclass/ChangeLog | 1 + eclass/elisp-common.eclass | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'eclass') diff --git a/eclass/ChangeLog b/eclass/ChangeLog index e20f0ed..4ffbdad 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -3,6 +3,7 @@ * elisp-common.eclass (elisp-site-regen): The nullglob shell option is not needed here, because inside the loop we test for existence of all files anyway. See also bug 328863. + The temporary file needs only be removed in the no changes case. 2010-01-30 Ulrich Mueller diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass index f127a14..6c7a99c 100644 --- a/eclass/elisp-common.eclass +++ b/eclass/elisp-common.eclass @@ -343,6 +343,7 @@ elisp-site-regen() { # This prevents outputting unnecessary text when there # was actually no change. # A case is a remerge where we have doubled output. + rm -f "${T}"/site-gentoo.el echo " no changes." else mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el @@ -354,8 +355,5 @@ elisp-site-regen() { esac fi - # cleanup - rm -f "${T}"/site-gentoo.el - return 0 } -- cgit v1.2.3-65-gdbad