WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 1 of 4] [PATCH] xenserver: strip all alpha-suffixes fro

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 1 of 4] [PATCH] xenserver: strip all alpha-suffixes from the xenserver build number
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Thu, 8 Jul 2010 14:33:01 +0100
Delivery-date: Thu, 08 Jul 2010 06:51:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1278595980@ely>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1278595980@ely>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1278595951 -3600
# Node ID 96f3ddc3dfac4fc2142f9d893090404939b8888a
# Parent  a2034a38b5164c4694bf954c412283fc75b0fd4f
[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 <ian.campbell@xxxxxxxxxx>
---
 scripts/vif |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff -r a2034a38b516 -r 96f3ddc3dfac scripts/vif
--- a/scripts/vif       Thu Jul 08 14:31:28 2010 +0100
+++ b/scripts/vif       Thu Jul 08 14:32:31 2010 +0100
@@ -28,7 +28,7 @@
 # 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
 scripts/vif |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Attachment: txtc24jXoG4IW.txt
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api