. ./locations.include
if [ -x /usr/bin/createrepo ] ; then 
  #
  # Do the base SL RPMS
  #
  cd $TREE/$DEFAULT
  if [ -d .olddata ] ; then
    /bin/rm -r .olddata
  fi
  echo "Making yum headers for  `pwd`"
  if [ -s repodata/comps-sl.xml ] ; then
     createrepo -d -g repodata/comps-sl.xml .
  else
     createrepo -d .
  fi
  if [ -d .olddata ] ; then
    /bin/rm -r .olddata
  fi
  repoview -t "Scientific Linux BASE $VERSION $ARCH" .
else
  echo "You need to install createrepo"
fi
