/pidgin/main: 3d96648efd41: Don't attempt to diff package_revisi...

Mark Doliner mark at kingant.net
Mon Jun 23 02:48:26 EDT 2014


Changeset: 3d96648efd4198360eb6c2f8ab002c56cabbdf14
Author:	 Mark Doliner <mark at kingant.net>
Date:	 2014-06-22 23:48 -0700
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/3d96648efd41

Description:

Don't attempt to diff package_revision_raw.txt if it doesn't exist.
Just mv the new file into place.

diffstat:

 Makefile.am |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,7 +117,7 @@ package_revision_raw.txt: .FORCE
 	(hg --cwd $(srcdir) id -i --debug) 2>/dev/null >$@.new \
 	|| rm -f $@.new
 	$(AM_V_at)if test -f $@.new; then \
-		if ! diff $@ $@.new > /dev/null; then \
+		if ! test -f "$@" || ! diff "$@" "$@".new > /dev/null ; then \
 			mv $@.new $@; \
 		else \
 			rm $@.new; \



More information about the Commits mailing list