From d91692119e074964a8b76ff1394b22600b71b387 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 22 Sep 2015 23:41:32 +0200 Subject: reproducible: more randomly select a package to build to better avoid race conditions (this commit should probably be reverted / improved one day --- bin/reproducible_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 22df05aa..827fac54 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -377,7 +377,7 @@ choose_package () { FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id WHERE sch.date_build_started = '' AND s.architecture='$ARCH' - ORDER BY date_scheduled LIMIT 1") + ORDER BY date_scheduled LIMIT 5"|sort -R|head -1) SUITE=$(echo $RESULT|cut -d "|" -f1) SRCPKGID=$(echo $RESULT|cut -d "|" -f2) SRCPACKAGE=$(echo $RESULT|cut -d "|" -f3) -- cgit v1.2.3-70-g09d2