From: Ben Pfaff Date: Mon, 24 Jan 2011 20:05:23 +0000 (-0800) Subject: vswitchd: Fail the build when the schema checksum does not match. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=748e066e5d23c4d6220f2d5702e3272f61bfb70c;p=openvswitch vswitchd: Fail the build when the schema checksum does not match. Before, a bad checksum was easy to miss because the build still succeeded. With this change, a bad checksum makes the build fail. This is what I thought the existing code already did, but I was wrong. Suggested-by: Andrew Evans --- diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index 87963fa9..5c8ab3c2 100644 --- a/vswitchd/automake.mk +++ b/vswitchd/automake.mk @@ -103,5 +103,6 @@ vswitchd/vswitch.ovsschema.stamp: vswitchd/vswitch.ovsschema else \ ln=`sed -n '/"cksum":/=' $?`; \ echo "$?:$$ln: checksum \"$$sum\" does not match (you should probably update the version number and fix the checksum)"; \ + exit 1; \ fi CLEANFILES += vswitchd/vswitch.ovsschema.stamp