
for repodata in $(cat repolist)
do 
  repo=${repodata/repodata/}
  if [ -f $repo"/repodata/GROUPS.xml" ]; then
      createrepo  $repo -g repodata/GROUPS.xml  -o $repo &
  else
      createrepo  $repo -o $repo &
  fi
done
