anchor.diff:  done
   
   if [ $status -ne 0 ]; then
  -  echo "ERROR: Repotrack did not exit cleanly after <%= numtries %> tries."
  +  echo "ERROR: Repotrack did not exit cleanly after <%= numtries %> tries." 1>&2
     exit 1
   fi
   if [ $before -ne $after ]; then
  -  echo "ERROR: There are still some packages with broken md5 sum after last (<%= numtries %>) retry to download them."
  +  echo "ERROR: There are still some packages with broken md5 sum after last (<%= numtries %>) retry to download them." 1>&2
     exit 1
   fi
   
   
   rm -f /etc/yum/vars/releasever
   yum-config-manager --enable 'nailgun' &> /dev/null
  -yum-config-manager --enable 'centos' &> /dev/null
  -yum-config-manager --enable 'base' &> /dev/null
   
   #Run again just for good measure
   #yumdownloader --releasever=<%= releasever %> --disablerepo='*' --enablerepo='rhel*' --resolve --destdir "<%= pkgdir %>/Packages" $(cat /etc/nailgun/required-rpms.txt | xargs echo -en)
  
positive.code: rm -rf /root/rhnpackages
  mkdir -p /root/rhnpackages
  yum-config-manager --enable rhel-6-server-rpms
  yumdownloader --releasever=<%= releasever %> --disablerepo='*' --enablerepo='*rhel*' --resolve --destdir /root/rhnpackages $rhnpackages
  #Delete in case yumdownloader gets extra packages
  repomanage -o /root/rhnpackages | xargs rm -f
  
  
negative.code:   fi
  done
  if [ $errors -gt 0 ]; then
    echo "There were problems enabling channels. Please check puppet manifests and your RHN Satellite channel configuration to ensure the necessary channels are enabled." 1>&2
    exit 1
  fi
  
  