# frozen_string_literal: true

# add Sisyphus branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = 'Sisyphus'
branch.order_id = 0
branch.path = '/Sisyphus'
# branch.srpm_path = ['/ALT/Sisyphus/files/SRPMS']
branch.save!

# add SisyphusARM branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = 'SisyphusARM'
branch.order_id = 1
branch.path = '/Sisyphus'
# branch.srpm_path = []
branch.save!

# add Platform8 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = 'p8'
branch.order_id = 2
branch.path = '/p8/branch'
branch.save!

# add Platform7 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = 'p7'
branch.order_id = 3
branch.path = '/p7/branch'
branch.save!

# add t7 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = 't7'
branch.order_id = 4
branch.path = '/t7/branch'
branch.save!

# add Platform6 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = 'Platform6'
branch.order_id = 5
branch.path = '/p6/branch'
branch.save!

# add t6 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = 't6'
branch.order_id = 6
branch.path = '/t6/branch'
branch.save!

# add Platform5 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = 'Platform5'
branch.order_id = 7
branch.path = '/p5/branch'
branch.save!

# add 5.1 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = '5.1'
branch.order_id = 8
branch.path = '/5.1/branch'
branch.save!

# add 5.0 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = '5.0'
branch.order_id = 9
branch.path = '/5.0/branch'
branch.save!

# add 4.1 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = '4.1'
branch.order_id = 10
branch.path = '/4.1/branch'
branch.save!

# add 4.0 branch
branch = Branch.new
branch.vendor = 'ALT Linux'
branch.name = '4.0'
branch.order_id = 11
branch.path = '/4.0/branch'
branch.save!

# add Fedora Rawhide
# branch = Branch.new
# branch.fullname = 'Rawhide'
# branch.urlname = 'Rawhide'
# branch.srpms_path = "/path/*.src.rpm"
# branch.altlinux = false
# branch.save!

# Mirrors for Sisyphus
branch = Branch.find_by(name: 'Sisyphus', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for SisyphusARM
# branch = Branch.find_by(name: 'SisyphusARM', vendor: 'ALT Linux')
# Mirror.create!(
#   branch_id: branch.id,
#   order_id: 0,
#   name: 'ftp://ftp.altlinux.org',
#   country: 'ru',
#   uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
#   protocol: 'ftp'
# )
# Mirror.create!(
#   branch_id: branch.id,
#   order_id: 1,
#   name: 'http://ftp.altlinux.org',
#   country: 'ru',
#   uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
#   protocol: 'http'
# )
# Mirror.create!(
#   branch_id: branch.id,
#   order_id: 2,
#   name: 'rsync://ftp.altlinux.org',
#   country: 'ru',
#   uri: 'rsync://ftp.altlinux.org/ALTLinux',
#   protocol: 'rsync'
# )

# Mirrors for p8
branch = Branch.find_by(name: 'p8', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for p7
branch = Branch.find_by(name: 'p7', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for t7
branch = Branch.find_by(name: 't7', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for Platform6
branch = Branch.find_by(name: 'Platform6', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for t6
branch = Branch.find_by(name: 't6', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for Platform5
branch = Branch.find_by(name: 'Platform5', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for 5.1
branch = Branch.find_by(name: '5.1', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for 5.0
branch = Branch.find_by(name: '5.0', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for 4.1
branch = Branch.find_by(name: '4.1', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirrors for 4.0
branch = Branch.find_by(name: '4.0', vendor: 'ALT Linux')
Mirror.create!(
  branch_id: branch.id,
  order_id: 0,
  name: 'http://ftp.altlinux.org',
  country: 'ru',
  uri: 'http://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 1,
  name: 'ftp://ftp.altlinux.org',
  country: 'ru',
  uri: 'ftp://ftp.altlinux.org/pub/distributions/ALTLinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 2,
  name: 'rsync://ftp.altlinux.org',
  country: 'ru',
  uri: 'rsync://ftp.altlinux.org/ALTLinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 3,
  name: 'http://mirror.yandex.ru/',
  country: 'ru',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 4,
  name: 'ftp://mirror.yandex.ru/',
  country: 'ru',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 5,
  name: 'rsync://mirror.yandex.ru/',
  country: 'ru',
  uri: 'rsync://mirror.yandex.ru/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 6,
  name: 'http://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'http://mirror.yandex.ru/altlinux',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 7,
  name: 'ftp://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'ftp://mirror.yandex.ru/altlinux',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 8,
  name: 'rsync://distrib-coffee.ipsl.jussieu.fr/',
  country: 'fr',
  uri: 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux',
  protocol: 'rsync'
)

Mirror.create!(
  branch_id: branch.id,
  order_id: 9,
  name: 'http://ftp.heanet.ie/',
  country: 'ie',
  uri: 'http://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'http'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 10,
  name: 'ftp://ftp.heanet.ie/',
  country: 'ie',
  uri: 'ftp://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'ftp'
)
Mirror.create!(
  branch_id: branch.id,
  order_id: 11,
  name: 'rsync://ftp.heanet.ie/',
  country: 'ie',
  uri: 'rsync://ftp.heanet.ie/mirrors/ftp.altlinux.org',
  protocol: 'rsync'
)

# Mirror.create(:branch_id => branch.id, :order_id => 1, :country => 'ru',
#               :ftp => 'ftp://ftp.chg.ru/pub/Linux/ALTLinux',
#               :rsync => 'rsync://ftp.chg.ru/ALTLinux')
#
# Mirror.create(:branch_id => branch.id, :order_id => 2, :country => 'us',
#               :ftp => 'ftp://ibiblio.org/pub/linux/distributions/altlinux',
#               :http => 'http://distro.ibiblio.org/pub/linux/distributions/altlinux',
#               :rsync => 'rsync://distro.ibiblio.org/distros/altlinux')
#
# Mirror.create(:branch_id => branch.id, :order_id => 4, :country => 'ru',
#               :ftp => 'ftp://mirror.yandex.ru/altlinux',
#               :http => 'http://mirror.yandex.ru/altlinux',
#               :rsync => 'rsync://mirror.yandex.ru/altlinux')

# packager list
MaintainerTeam.create!(
  name: 'Nobody',
  email: 'noboby@altlinux.org',
  login: '@nobody'
)
MaintainerTeam.create!(
  name: 'Eve R. Ybody',
  email: 'everybody@altlinux.org',
  login: '@everybody'
)

Maintainer.create!(
  name: 'Igor Zubkov',
  email: 'icesik@altlinux.org',
  login: 'icesik'
)
Maintainer.create!(
  name: 'Alexey Tourbin',
  email: 'at@altlinux.org',
  login: 'at'
)
Maintainer.create!(
  name: 'Alexey I. Froloff',
  email: 'raorn@altlinux.org',
  login: 'raorn'
)
Maintainer.create!(
  name: 'Eugeny A. Rostovtsev',
  email: 'real@altlinux.org',
  login: 'real'
)
Maintainer.create!(
  name: 'Alexey Rusakov',
  email: 'ktirf@altlinux.org',
  login: 'ktirf'
)
Maintainer.create!(
  name: 'Alex Gorbachenko',
  email: 'algor@altlinux.org',
  login: 'algor'
)
Maintainer.create!(
  name: 'Andriy Stepanov',
  email: 'stanv@altlinux.org',
  login: 'stanv'
)
Maintainer.create!(
  name: 'Anton Farygin',
  email: 'rider@altlinux.org',
  login: 'rider'
)
Maintainer.create!(
  name: 'Igor Muratov',
  email: 'migor@altlinux.org',
  login: 'migor'
)
Maintainer.create!(
  name: 'Mihail A. Pluzhnikov',
  email: 'amike@altlinux.org',
  login: 'amike'
)
Maintainer.create!(
  name: 'Pavel V. Solntsev',
  email: 'p_solntsev@altlinux.org',
  login: 'p_solntsev'
)
Maintainer.create!(
  name: 'Serge Ryabchun',
  email: 'sr@altlinux.org',
  login: 'sr'
)
Maintainer.create!(
  name: 'Yurkovsky Andrey',
  email: 'anyr@altlinux.org',
  login: 'anyr'
)
Maintainer.create!(
  name: 'Mikerin Sergey',
  email: 'mikcor@altlinux.org',
  login: 'mikcor'
)
Maintainer.create!(
  name: 'Alexey Lokhin',
  email: 'warframe@altlinux.org',
  login: 'warframe'
)
Maintainer.create!(
  name: 'Alexey Shabalin',
  email: 'shaba@altlinux.org',
  login: 'shaba'
)
Maintainer.create!(
  name: 'Valery Pipin',
  email: 'vvpi@altlinux.org',
  login: 'vvpi'
)
Maintainer.create!(
  name: 'Pavel Boldin',
  email: 'bp@altlinux.org',
  login: 'bp'
)
Maintainer.create!(
  name: 'Ruslan Hihin',
  email: 'ruslandh@altlinux.org',
  login: 'ruslandh'
)
Maintainer.create!(
  name: 'Sergey Lebedev',
  email: 'barabashka@altlinux.org',
  login: 'barabashka'
)
Maintainer.create!(
  name: 'Konstantin Pavlov',
  email: 'thresh@altlinux.org',
  login: 'thresh'
)
Maintainer.create!(
  name: 'Alexey Morozov',
  email: 'morozov@altlinux.org',
  login: 'morozov'
)
Maintainer.create!(
  name: 'Dmitry V. Levin',
  email: 'ldv@altlinux.org',
  login: 'ldv'
)
Maintainer.create!(
  name: 'Igor Androsov',
  email: 'blake@altlinux.org',
  login: 'blake'
)
Maintainer.create!(
  name: 'Aleksandr Blokhin',
  email: 'sass@altlinux.org',
  login: 'sass'
)
Maintainer.create!(
  name: 'Alexander Plikus',
  email: 'plik@altlinux.org',
  login: 'plik'
)
Maintainer.create!(
  name: 'Vladimir Zhukov',
  email: 'bertis@altlinux.org',
  login: 'bertis'
)
Maintainer.create!(
  name: 'Yura Zotov',
  email: 'yz@altlinux.org',
  login: 'yz'
)
Maintainer.create!(
  name: 'Ilya Kuznetsov',
  email: 'worklez@altlinux.org',
  login: 'worklez'
)
Maintainer.create!(
  name: 'Alex Yustasov',
  email: 'yust@altlinux.org',
  login: 'yust'
)
Maintainer.create!(
  name: 'Konstantin Volckov',
  email: 'goldhead@altlinux.org',
  login: 'goldhead'
)
Maintainer.create!(
  name: 'Andrey Orlov',
  email: 'cray@altlinux.org',
  login: 'cray'
)
Maintainer.create!(
  name: 'Alexander V. Denisov',
  email: 'rupor@altlinux.org',
  login: 'rupor'
)
Maintainer.create!(
  name: 'Peter Novodvorsky',
  email: 'nidd@altlinux.org',
  login: 'nidd'
)
Maintainer.create!(
  name: 'George Kirik',
  email: 'kga@altlinux.org',
  login: 'kga'
)
Maintainer.create!(
  name: 'Eugine V. Kosenko',
  email: 'maverik@altlinux.org',
  login: 'maverik'
)
Maintainer.create!(
  name: 'Konstantin A. Lepikhov',
  email: 'lakostis@altlinux.org',
  login: 'lakostis'
)
Maintainer.create!(
  name: 'George V. Kouryachy',
  email: 'george@altlinux.org',
  login: 'george'
)
Maintainer.create!(
  name: 'Aitov Timur',
  email: 'timonbl4@altlinux.org',
  login: 'timonbl4'
)
Maintainer.create!(
  name: 'Anton Chernyshov',
  email: 'ach@altlinux.org',
  login: 'ach'
)
Maintainer.create!(
  name: 'Denis Baranov',
  email: 'baraka@altlinux.org',
  login: 'baraka'
)
Maintainer.create!(
  name: 'Andrey Lykov',
  email: 'droid@altlinux.org',
  login: 'droid'
)
Maintainer.create!(
  name: 'Grigory Fateyev',
  email: 'greg@altlinux.org',
  login: 'greg'
)
Maintainer.create!(
  name: 'Anton Yanchenko',
  email: 'lizzard@altlinux.org',
  login: 'lizzard'
)
Maintainer.create!(
  name: 'Konstantin Uvarin',
  email: 'lodin@altlinux.org',
  login: 'lodin'
)
Maintainer.create!(
  name: 'Alex Radetsky',
  email: 'rad@altlinux.org',
  login: 'rad'
)
Maintainer.create!(
  name: 'Wartan Hachaturow',
  email: 'wart@altlinux.org',
  login: 'wart'
)
Maintainer.create!(
  name: 'Anton Pischulin',
  email: 'letanton@altlinux.org',
  login: 'letanton'
)
Maintainer.create!(
  name: 'Pavel Isopenko',
  email: 'pauli@altlinux.org',
  login: 'pauli'
)
Maintainer.create!(
  name: 'Mike Radyuk',
  email: 'torabora@altlinux.org',
  login: 'torabora'
)

# TODO: add @xen and @ha-cluster'

MaintainerTeam.create!(
  name: 'TeX Development Team',
  email: 'tex@packages.altlinux.org',
  login: '@tex'
)
MaintainerTeam.create!(
  name: 'Connexion Development Team',
  email: 'connexion@packages.altlinux.org',
  login: '@connexion'
)
MaintainerTeam.create!(
  name: 'EVMS Development Team',
  email: 'evms@packages.altlinux.org',
  login: '@evms'
)
MaintainerTeam.create!(
  name: 'QA Team',
  email: 'qa@packages.altlinux.org',
  login: '@qa'
)
MaintainerTeam.create!(
  name: 'CPAN Team',
  email: 'cpan@packages.altlinux.org',
  login: '@cpan'
)
MaintainerTeam.create!(
  name: 'Xfce Team',
  email: 'xfce@packages.altlinux.org',
  login: '@xfce'
)
MaintainerTeam.create!(
  name: 'VIm Plugins Development Team',
  email: 'vim-plugins@packages.altlinux.org',
  login: '@vim-plugins'
)
MaintainerTeam.create!(
  name: 'FreeRadius Development Team',
  email: 'freeradius@packages.altlinux.org',
  login: '@freeradius'
)
MaintainerTeam.create!(
  name: 'FTN Development Team',
  email: 'ftn@packages.altlinux.org',
  login: '@ftn'
)
MaintainerTeam.create!(
  name: 'Java Team',
  email: 'java@packages.altlinux.org',
  login: '@java'
)
MaintainerTeam.create!(
  name: 'Kernel Team',
  email: 'kernel@packages.altlinux.org',
  login: '@kernel'
)
MaintainerTeam.create!(
  name: 'Ruby Team',
  email: 'ruby@packages.altlinux.org',
  login: '@ruby'
)
MaintainerTeam.create!(
  name: 'Python Team',
  email: 'python@packages.altlinux.org',
  login: '@python'
)
MaintainerTeam.create!(
  name: 'QA p6',
  email: 'qa_p6@packages.altlinux.org',
  login: '@qa_p6'
)
MaintainerTeam.create!(
  name: 'QA p5',
  email: 'qa_p5@packages.altlinux.org',
  login: '@qa_p5'
)
