. locations.include
up1=`dirname $TREE`
up2=`dirname $up1`
if [ -x /usr/bin/yum-arch ] ; then 
  cd $TREE/errata/$DEFAULT/RPMS
  echo "Making yum headers for  `pwd`"
  createrepo .
  if [ -d .olddata ] ; then
    /bin/rm -r .olddata
  fi
  yum-arch -l .
  repoview -t "Scientific Linux Errata" .
else
  echo "You need to install the yum package"
fi
