[padb-devel] [padb commit] r92 - Warn if a specific resource manager is seleceted but it

codesite-noreply at google.com codesite-noreply at google.com
Wed Jul 8 18:44:58 BST 2009


Author: apittman
Date: Wed Jul  8 10:41:26 2009
New Revision: 92

Modified:
    branches/full-duplex/src/padb

Log:
Warn if a specific resource manager is seleceted but it
doesn't appear to be installed.  The program will almost
certainly bomb out but for now print a warning and then
keep going.


Modified: branches/full-duplex/src/padb
==============================================================================
--- branches/full-duplex/src/padb	(original)
+++ branches/full-duplex/src/padb	Wed Jul  8 10:41:26 2009
@@ -2557,6 +2557,11 @@
  # Don't do any sanity checks here to cope with non-default installs.

      if ( defined $rmgr{ $conf{"rmgr"} } ) {
+        if ( not $rmgr{ $conf{"rmgr"} }{is_installed}() ) {
+            printf(
+"Warning: Selected resource manager $conf{rmgr} does not appear to be  
installed\n"
+            );
+        }
          setup_rmgr( $conf{"rmgr"} );
          return;
      }
@@ -2597,6 +2602,11 @@
  # Don't do any sanity checks here to cope with non-default installs.

      if ( defined $rmgr{ $conf{"rmgr"} } ) {
+        if ( not $rmgr{ $conf{"rmgr"} }{is_installed}() ) {
+            printf(
+"Warning: Selected resource manager $conf{rmgr} does not appear to be  
installed\n"
+            );
+        }
          setup_rmgr( $conf{"rmgr"} );
          return;
      }




More information about the padb-devel mailing list