summaryrefslogtreecommitdiff
path: root/bin/update-pacman-dbs
blob: 268b9da015b812a83e7b8c89ad600a0208a73872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

base_dir=$(
  readlink -f "${0%/*}/.."
)

for arch in i486 i686; do

  pacman --config "${base_dir}/misc/pacman-${arch}.conf" -Syy
  su master -c 'pkgfile -C '"${base_dir}"'/misc/pacman-'"${arch}"'.conf -D '"${base_dir}"'/work/pkgfile-'"${arch}"'.cache -u'

done