[experimental-ims] 403a361 Don't force a rerun to save reference if we just ran it.

Geoff Simmons geoff at varnish-cache.org
Fri Jul 8 11:47:47 CEST 2011


commit 403a361928841ab66d52471f0a439480aa125a98
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Jun 22 10:52:47 2011 +0000

    Don't force a rerun to save reference if we just ran it.

diff --git a/bin/varnishd/flint.sh b/bin/varnishd/flint.sh
index d87fe66..690e445 100755
--- a/bin/varnishd/flint.sh
+++ b/bin/varnishd/flint.sh
@@ -1,5 +1,11 @@
 #!/bin/sh
 
+if [ "x$1" = "x-ok" -a -f _.fl ] ; then
+	echo "Saved as reference"
+	mv _.fl _.fl.old
+	exit 0
+fi
+
 flexelint \
 	../flint.lnt \
 	flint.lnt \
@@ -21,5 +27,6 @@ if [ -f _.fl.old ] ; then
 fi
 
 if [ "x$1" = "x-ok" ] ; then
+	echo "Saved as reference"
 	mv _.fl _.fl.old
 fi



More information about the varnish-commit mailing list