2011-04-17 22:19:57 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-04-27 10:14:09 +02:00
|
|
|
## Setup some vars to use local portage tree
|
|
|
|
# export PATH=${HOME}/euscan/:${PATH}
|
|
|
|
# export PORTAGE_CONFIGROOT=${HOME}/local
|
|
|
|
# export ROOT=${HOME}/local
|
|
|
|
# export EIX_CACHEFILE=${HOME}/local/var/cache/eix
|
|
|
|
|
|
|
|
## Go to euscanwww dir
|
|
|
|
# cd ${HOME}/euscan/euscanwww/
|
|
|
|
|
2011-04-17 22:19:57 +02:00
|
|
|
## Update local trees
|
2011-04-27 10:14:09 +02:00
|
|
|
# emerge --sync --root=${ROOT} --config-root=${PORTAGE_CONFIGROOT}
|
|
|
|
# ROOT="/" layman -S --config=${ROOT}/etc/layman/layman.cfg
|
2011-04-17 22:19:57 +02:00
|
|
|
|
|
|
|
## Also update eix database, because we use eix internaly
|
|
|
|
# eix-update
|
|
|
|
|
|
|
|
## Scan portage (packages, versions)
|
2011-08-31 15:38:32 +02:00
|
|
|
# python manage.py scan-portage --all --purge-versions --purge-packages
|
2011-04-17 22:19:57 +02:00
|
|
|
|
|
|
|
## Scan metadata (herds, maintainers, homepages, ...)
|
2011-04-18 21:21:23 +02:00
|
|
|
# python manage.py scan-metadata --all
|
2011-04-17 22:19:57 +02:00
|
|
|
|
|
|
|
## Scan uptsream packages
|
|
|
|
# python manage.py scan-upstream --all
|
2011-08-31 15:38:32 +02:00
|
|
|
# eix --only-names -x | gparallel --jobs 400% euscan | python manage.py scan-upstream --feed --purge-versions
|
2011-05-05 18:10:47 +02:00
|
|
|
|
|
|
|
## Update counters
|
|
|
|
# python manage.py update-counters
|