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-Tag: v1.1.0~452 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=748e066e5d23c4d6220f2d5702e3272f61bfb70c;p=sliver-openvswitch.git 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 87963fa94..5c8ab3c23 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