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 87963fa..5c8ab3c 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