if [ -s locations.include ] ; then
. locations.include
else
. $MYPWD/locations.include
fi
if [ -x /usr/bin/createrepo ] ; then 
  cd $TREE/updates/security
  echo "Making yum headers for  `pwd`"
  if [ -d .olddata ] ; then
    /bin/rm -r .olddata
  fi
  createrepo -d --exclude \*debuginfo\* --exclude \*src.rpm .
  if [ -d .olddata ] ; then
    /bin/rm -r .olddata
  fi
  repoview -t "Scientific Linux Security Updates $VERSION $ARCH" .
else
  echo "You need to install createrepo"
fi
