Commit 12a92e56 authored by Stefano Belforte's avatar Stefano Belforte
Browse files

use Info/Notice/Warning as from twiki https://twiki.cern.ch/twiki/bin/view/CMS/SAMExitCodes

parent b2397471
......@@ -215,7 +215,7 @@ echo "Fetch CVS copy of local config from $cvsUrl<br>"
rc=$?
echo "rc = $rc <br>"
[ $rc == $SAME_INFO ] && info=1
[ $rc == $SAME_WARNING ] && warning=1
[ $rc == $SAME_NOTICE ] && note=1
#if [ $rc == $SAME_WARNING ] || [ $rc == $SAME_ERROR ] ; then
# echo "<br>INFO: failed to access CVS Web repository<bre>"
......@@ -235,7 +235,7 @@ if [ $rc == $SAME_OK ] || [ $rc == $SAME_INFO ] ; then
rc=$?
echo "rc = $rc <br>"
[ $rc == $SAME_INFO ] && info=1
[ $rc == $SAME_WARNING ] && warning=1
[ $rc == $SAME_NOTICE ] && note=1
cvsFileDate=`grep "<em>" $ConfigFileMarkup |head -1|awk -F '<em>|</em>' '{print $2 }'`
let seconds=`date +%s`-`date +%s -d "$cvsFileDate"`
......@@ -263,8 +263,8 @@ if [ $rc == $SAME_OK ] || [ $rc == $SAME_INFO ] ; then
fi
rm -f $ConfigFileFromCVS
else
echo "<br>INFO: failed to access CVS Web repository<bre>"
info=1
echo "<br>NOTICE: failed to access CVS Web repository<bre>"
note=1
fi
echo "<br>"
......@@ -293,7 +293,7 @@ echo "Fetch CVS copy of TFC from $cvsUrl<br>"
rc=$?
echo "rc = $rc <br>"
[ $rc == $SAME_INFO ] && info=1
[ $rc == $SAME_WARNING ] && warning=1
[ $rc == $SAME_NOTICE ] && note=1
#if [ $rc == $SAME_WARNING ] || [ $rc == $SAME_ERROR ] ; then
# echo "<br>INFO: failed to access CVS Web repository<bre>"
......@@ -342,8 +342,8 @@ if [ $rc == $SAME_OK ] || [ $rc == $SAME_INFO ] ; then
fi
rm -f $TfcFileFromCVS
else
echo "<br>INFO: failed to access CVS Web repository<bre>"
info=1
echo "<br>NOTICE: failed to access CVS Web repository<bre>"
note=1
fi
echo "<p>dump of TFC file is <a href=\"#TFCDump\">here</a>"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment