vswitchd: Fail the build when the schema checksum does not match.
authorBen Pfaff <blp@nicira.com>
Mon, 24 Jan 2011 20:05:23 +0000 (12:05 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 25 Jan 2011 20:32:54 +0000 (12:32 -0800)
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 <aevans@nicira.com>
vswitchd/automake.mk

index 87963fa94ae903069fc75f7d16eec63f4a282278..5c8ab3c23b97151edb82fa8105c47b47e7e48972 100644 (file)
@@ -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