Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 9489)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 9492)
@@ -274,7 +274,9 @@
 function getstepinfo()
 {
+   getdbsetup
    table=`grep "$column:" $steps | sed -e "s/[.]$column://" -e 's/#//' -e 's/ //g'`
    coltab=`grep "$column:" $steps | sed -e 's/://' -e 's/#//' -e 's/ //g'`
    needs=`grep "$coltab[.]Needs:" $steps | sed -e "s/$coltab[.]Needs://"`
+   noderestricted=`grep "$coltab[.]NodeRestricted:" $steps | sed -e "s/$coltab[.]NodeRestricted://" -e 's/ //g'`
    influences=`grep "$coltab[.]Influences:" $steps | sed -e "s/$coltab[.]Influences://"`
    prims=( `grep "$table[.]Primary:" $steps | sed -e "s/$table[.]Primary://"` )
@@ -282,4 +284,5 @@
 #   echo " needs: $needs"
 #   echo " influences: $influences"
+#   echo " noderestricted: $noderestricted"
 #   echo " prims: ${prims[@]}"
 }
@@ -290,5 +293,4 @@
    process=
    printprocesslog "INFO getting todo..."
-   getdbsetup
    getstepinfo
    # get query
@@ -340,5 +342,4 @@
 {
    numproc=
-   getdbsetup
    getstepinfo
    # get query
@@ -366,4 +367,8 @@
       continue
    fi
+   if [ "$numproc" = "" ]
+   then
+      numproc=0
+   fi
 }
 
@@ -377,5 +382,4 @@
    resetstatusvalues
    evalstatus $@
-   getdbsetup
    getstepinfo
    # get query
