Commit f3e441ce authored by Stefano Belforte's avatar Stefano Belforte
Browse files

test new CE-cms-basic

parent 44890b98
......@@ -306,7 +306,24 @@ if [ $rc == $SAME_OK ] || [ $rc == $SAME_INFO ] ; then
if [ $? == 1 ] ; then asCvs=0; fi
echo "<br>"
if [ $asCvs == 0 ] ; then
if [ $localTFCfileAgeInHours -gt 72 ] ; then
cvsMarkupUrl="\"http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/COMP/SITECONF/${siteName}/PhEDEx/${TFCfileName}?view=markup\""
TfcFileMarkup=`mktemp /tmp/TFC-from-CVS-Markup.xml.XXX`
echo "Fetch CVS Markup copy of TFC from $cvsMarkupUrl<br>"
./fetch-from-web $cvsMarkupUrl $TfcFileMarkup
rc=$?
echo "rc = $rc <br>"
[ $rc == $SAME_INFO ] && info=1
[ $rc == $SAME_WARNING ] && warning=1
cvsFileDate=`grep "<em>" $TfcFileMarkup |head -1|awk -F '<em>|</em>' '{print $2 }'`
let seconds=`date +%s`-`date +%s -d "$cvsFileDate"`
let cvsFileAgeInHours=$seconds/3600
echo "<pre>"
echo CVS version of Local Configuration file is ${cvsFileAgeInHours} hours old
echo "</pre>"
if [ $localTFCfileAgeInHours -gt 72 ] && [ $cvsFileAgeInHours -gt 72 ] ; then
# if [ $localTFCfileAgeInHours -gt 72 ] ; then
error=1
echo "<strong>ERROR: local Trivial Catalog File file differ from CVS</strong>"
else
......
Supports Markdown
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