[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] buildconfig: Fix setopt in case where option is already set but to the wrong value



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.