From a070b9e3b1e3e0bf750cdb5b1b04d923f1b2b16b Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 8 Jul 2010 14:32:31 +0100 Subject: [PATCH] [PATCH] xenserver: strip all alpha-suffixes from the xenserver build number. From 2c0f11dc7e66e10257ef927574a99d5f888c774c Mon Sep 17 00:00:00 2001 Date: Thu, 1 Apr 2010 10:45:22 +0100 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 --- scripts/vif | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- scripts/vif | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vif b/scripts/vif index 1a38dc4c..240cb709 100755 --- a/scripts/vif +++ b/scripts/vif @@ -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 -- 2.39.5