summaryrefslogtreecommitdiff
path: root/db-import.conf
blob: e00e7b0dc6bbfd3ab0c1540566ec81bed5fe1bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/hint/bash

IMPORTDIR=/srv/repo/import

case "$USER" in
	db-import-packages)
		_archrepos=(
			{core,extra,testing,staging}-{i686,x86_64}
			{gnome,kde}-unstable-{i686,x86_64}
		);;
	db-import-community)
		_archrepos=(
			community{,-testing,-staging}-{i686,x86_64}
			multilib{,-testing,-staging}-x86_64
		);;
esac

_archpkgmirror=$(db-import-pick-mirror rsync https://www.archlinux.org/mirrors/status/tier/1/json/)

# name pkgmirror absmirror repo-arch...
IMPORTS=("archlinux ${_archpkgmirror} rsync.archlinux.org ${_archrepos[*]}")

unset _archrepos _archpkgmirror