diff options
author | 2010-09-18 15:36:36 +0200 | |
---|---|---|
committer | 2010-09-18 15:36:36 +0200 | |
commit | 9868ccc296f2d9c4df90ca10849bbc938b24da8c (patch) | |
tree | 20cf54751ae9a570f5f30024ccbe02131f97b362 /tinderbox-continuous.sh | |
parent | Don't re-create the gcc specs for --as-needed if the latest version is alread... (diff) | |
download | flameeyes-tinderbox-9868ccc296f2d9c4df90ca10849bbc938b24da8c.tar.gz flameeyes-tinderbox-9868ccc296f2d9c4df90ca10849bbc938b24da8c.tar.bz2 flameeyes-tinderbox-9868ccc296f2d9c4df90ca10849bbc938b24da8c.zip |
Improve build list handling.
- get the first 200 random packages out of the _complete_ list (not the
queue itself) — this allows for new packages to enter the queue by
themselves;
- keep a per-session mask list, to the side of the current run mask list;
this allows exclusion of packages for a longer time (if no revision is
added) and a faster turnover of packages.
Diffstat (limited to 'tinderbox-continuous.sh')
-rwxr-xr-x | tinderbox-continuous.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tinderbox-continuous.sh b/tinderbox-continuous.sh index f5bd354..2da969a 100755 --- a/tinderbox-continuous.sh +++ b/tinderbox-continuous.sh @@ -17,8 +17,15 @@ tboxdir=$(dirname $0) +echo > /etc/portage/package.mask/currentsession + until [ -f /var/run/tinderbox.pleasestop ]; do ${tboxdir}/tinderbox-restart.sh - head -n 200 /var/cache/tinderbox/queue | xargs -n1 ${tboxdir}/emerge-wrapper.sh + sort -R /var/cache/tinderbox/list-complete | head -n 200 | xargs -n1 ${tboxdir}/emerge-wrapper.sh + + # before restarting, copy the current run's mask into the session + # mask; rinse and repeat. This should achieve something much more + # similar to what I did by hand before. + cat /etc/portage/package.mask/currentrun >> /etc/portage/package.mask/currentsession done |