From 9868ccc296f2d9c4df90ca10849bbc938b24da8c Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Sat, 18 Sep 2010 15:36:36 +0200 Subject: Improve build list handling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. --- tinderbox-continuous.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-65-gdbad