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-changelog

[Xen-changelog] [xen-unstable] buildconfig: Fix setopt in case where opt

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] buildconfig: Fix setopt in case where option is already set but to the wrong value
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Jun 2010 00:15:16 -0700
Delivery-date: Wed, 16 Jun 2010 00:16:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1276598244 -3600
# Node ID 21d4f27be47e405850851e05b233eee9a6e0e3e9
# Parent  856c4684603984f9e853baaa011db9847da0b4eb
buildconfig: Fix setopt in case where option is already set but to the wrong 
value

Signed-off-by: Alex Zeffertt <alex.zeffertt@xxxxxxxxxxxxx>
---
 buildconfigs/enable-xen-config |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 856c46846039 -r 21d4f27be47e buildconfigs/enable-xen-config
--- a/buildconfigs/enable-xen-config    Tue Jun 15 11:36:27 2010 +0100
+++ b/buildconfigs/enable-xen-config    Tue Jun 15 11:37:24 2010 +0100
@@ -15,7 +15,7 @@ setopt()
        VALUE=$2
 
        # First remove any existing instances of this option
-       sed -e "s/^# ${OPTION} is not set$//g ; s/^^{OPTION}=.$//g" -i 
"${CONFIG}"
+       sed -e "s/^# ${OPTION} is not set$//g ; s/^${OPTION}=.*$//g" -i 
"${CONFIG}"
 
        # Then append the new value
        case ${VALUE} in

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] buildconfig: Fix setopt in case where option is already set but to the wrong value, Xen patchbot-unstable <=