[Libvirt-cim] [PATCH] [PATCH] Unable to use install_base_schema.sh on sfcb

Jim Fehlig jfehlig at novell.com
Tue May 6 20:32:44 UTC 2008


# HG changeset patch
# User Jim Fehlig <jfehlig at novell.com>
# Date 1210105905 21600
# Node ID 1a1eac873ee7999b6a610d1c52b04be8a981d479
# Parent  2ec4259b46e7b0eeb275edbd8eb2d6051318b417
[PATCH] Unable to use install_base_schema.sh on sfcb

install_base_schema.sh would return without importing schema.  Fix directory
test to return when the directory does not exist, not when it does exist.
It looks as though the same applies for openwbem, although I did not test
with that cimom.

     Signed-off-by: Jim Fehlig <jfehlig at novell.com>

diff -r 2ec4259b46e7 -r 1a1eac873ee7 base_schema/install_base_schema.sh.in
--- a/base_schema/install_base_schema.sh.in	Mon May 05 09:44:13 2008 -0700
+++ b/base_schema/install_base_schema.sh.in	Tue May 06 14:31:45 2008 -0600
@@ -78,7 +78,7 @@ install_schema_sfcb() {
     local dir=$(detect_sfcb_dir)
 
     mkdir ${dir}/CIM
-    if [ -d "${dir}/CIM" ]; then
+    if [ ! -d "${dir}/CIM" ]; then
 	echo "Unable to determine SFCB directory"
 	echo "set SFCB_DIR"
 	return
@@ -94,7 +94,7 @@ install_schema_openwbem() {
     local schema_dir=$dir/cimv$SCHEMA_VERSION
 
     mkdir $schema_dir
-    if [ -d "$schema_dir" ]; then
+    if [ ! -d "$schema_dir" ]; then
 	echo "Unable to determine openwbem schema directory"
 	return
     fi




More information about the Libvirt-cim mailing list