. 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`"
  yum-arch -l .
  if [ -x /usr/bin/createrepo ] ; then
        createrepo .
        if [ -x /usr/bin/repoview ] ; then
                repoview -t "Scientific Linux Security Errata $VERSION $ARCH" .
        fi
  fi
else
  echo "You need to install the yum package"
fi
