summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
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)