blob: 801ef7d1464f88449c912104fb30d22c6f475742 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/bash
update_repository(){
# This is the copy of the tree used to run gpackages against.
if [[ ! -d /mnt/packages-tree/gentoo/ ]]; then
cd /mnt/packages-tree || exit 1
git clone https://anongit.gentoo.org/git/repo/gentoo.git
else
cd /mnt/packages-tree/gentoo/ || exit 1
git pull origin master --rebase &>/dev/null
fi
}
update_md5cache(){
mkdir -p /var/cache/pgo-egencache
cd /mnt/packages-tree/gentoo/ || exit 1
#echo 'FEATURES="-userpriv -usersandbox -sandbox"' >> /etc/portage/make.conf
egencache -j 6 --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
location = /mnt/packages-tree/gentoo' --update
egencache -j 6 --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
location = /mnt/packages-tree/gentoo' --update-use-local-desc
}
update_database(){
cd /mnt/packages-tree/gentoo/ || exit 1
/go/src/soko/bin/soko --update
}
update_repository
update_md5cache
update_database
|