Commit 14ddcf02 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Arch Linux: reschedule packages which have been tested 4 days ago. (just before: 5d)

parent 18a33594
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ update_archlinux_repositories() {
	echo "$(date -u ) - should we schedule old packages?"
	MAX=500
	local THRESHOLD=600
	MINDATE=$(date -u +"%Y-%m-%d %H:%M" -d "5 days ago")
	MINDATE=$(date -u +"%Y-%m-%d %H:%M" -d "4 days ago")
	SCHDATE=$(date -u +"%Y-%m-%d %H:%M" -d "7 days")
	local CURRENT=$(query_db "SELECT count(*) FROM sources AS s JOIN schedule AS sch ON s.id=sch.package_id WHERE s.distribution=$DISTROID AND s.architecture='x86_64' AND sch.date_build_started IS NULL;")
	if [ $CURRENT -le $THRESHOLD ] ; then