. locations.include
if [ -x /usr/bin/createrepo ] ; then 
# make errata site yum headers
  cd $TREE/sites/$SITE/Updates
  echo "Making yum headers for  `pwd`"
  if [ -s ../base/comps.xml ] ; then
     createrepo -g ../base/comps.xml .
  else
     createrepo .
  fi
  yum-arch .
  repoview -t "Scientific Linux Fermi $VERSION x86_64" .
else
  echo "You need to install the createrepo package"
fi
