. locations.include
up1=`dirname $TREE`
up2=`dirname $up1`
if [ -x /usr/bin/createrepo ] ; then 
  cd $TREE/$SITEDIR/updates/security
  echo "Making yum headers for  `pwd`"
  if [ -d .olddata ] ; then
    /bin/rm -r .olddata
  fi
  createrepo -d .
  if [ -d .olddata ] ; then
    /bin/rm -r .olddata
  fi
  repoview -t "Scientific Linux $SITE $VERSION $ARCH Security Updates" .
else
  echo "You need to install createrepo"
fi
