2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

xenserver: strip all alpha-suffixes from the xenserver build number.

The letter at the end of the build number indicates the site where the build
was done. All publicly released builds come from "p" but within Citrix we have
other suffixes (i.e. in Cambridge we get c).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Ian Campbell
2010-04-01 10:45:22 +01:00
committed by Ben Pfaff
parent 7730bd8fde
commit 2c0f11dc7e

View File

@@ -28,7 +28,7 @@ vsctl="/usr/bin/ovs-vsctl"
# XAPI before build 29381 (approximately) did not provide some of the
# data in XenStore that we rely on.
. /etc/xensource-inventory
if test "$PRODUCT_VERSION" = "5.5.0" || test "${BUILD_NUMBER%p}" -le 26131
if test "$PRODUCT_VERSION" = "5.5.0" || test "${BUILD_NUMBER%[a-z]}" -le 26131
then
xs550=true
else