euscanwww/scripts: sync with prod
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
1d8e87482f
commit
96775215fa
@ -2,22 +2,35 @@
|
|||||||
|
|
||||||
## Setup some vars to use local portage tree
|
## Setup some vars to use local portage tree
|
||||||
# export PATH=${HOME}/euscan/:${PATH}
|
# export PATH=${HOME}/euscan/:${PATH}
|
||||||
# export PORTAGE_CONFIGROOT=${HOME}/local
|
|
||||||
# export ROOT=${HOME}/local
|
# export ROOT=${HOME}/local
|
||||||
|
# export PORTAGE_CONFIGROOT=${ROOT}
|
||||||
# export EIX_CACHEFILE=${HOME}/local/var/cache/eix
|
# export EIX_CACHEFILE=${HOME}/local/var/cache/eix
|
||||||
|
|
||||||
## Go to euscanwww dir
|
|
||||||
# cd ${HOME}/euscan/euscanwww/
|
|
||||||
|
|
||||||
## Update local trees
|
## Update local trees
|
||||||
# emerge --sync --root=${ROOT} --config-root=${PORTAGE_CONFIGROOT}
|
# emerge --sync --root=${ROOT} --config-root=${PORTAGE_CONFIGROOT}
|
||||||
# ROOT="/" layman -S --config=${ROOT}/etc/layman/layman.cfg
|
# ROOT="/" layman -S --config=${ROOT}/etc/layman/layman.cfg
|
||||||
|
|
||||||
|
## Generate ebuild cache to speed up eix
|
||||||
|
# cd ${ROOT}/var/lib/layman/ && \
|
||||||
|
# for overlay in **/; do
|
||||||
|
# [ ! -f ${overlay}profiles/repo_name ] && continue
|
||||||
|
#
|
||||||
|
# echo "egencache ${overlay}"
|
||||||
|
# egencache --jobs=8 --rsync \
|
||||||
|
# --repo=$(cat ${overlay}profiles/repo_name) \
|
||||||
|
# --config-root=${PORTAGE_CONFIGROOT} \
|
||||||
|
# --update --update-use-local-desc
|
||||||
|
# done
|
||||||
|
|
||||||
## Also update eix database, because we use eix internaly
|
## Also update eix database, because we use eix internaly
|
||||||
# eix-update
|
# eix-update
|
||||||
|
|
||||||
|
## Go to euscanwww dir
|
||||||
|
# cd ${HOME}/euscan/euscanwww/
|
||||||
|
|
||||||
## Scan portage (packages, versions)
|
## Scan portage (packages, versions)
|
||||||
# python manage.py scan-portage --all --purge-versions --purge-packages
|
# python manage.py scan-portage --all --purge-versions --purge-packages
|
||||||
|
# eix --only-names -x | sort --random-sort | gparallel --eta --load 8 --jobs 400% --max-args=64 python manage.py scan-metadata
|
||||||
|
|
||||||
## Scan metadata (herds, maintainers, homepages, ...)
|
## Scan metadata (herds, maintainers, homepages, ...)
|
||||||
# python manage.py scan-metadata --all
|
# python manage.py scan-metadata --all
|
||||||
|
Loading…
Reference in New Issue
Block a user