Commit 399c1f90 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Archlinux: reduce mindate for rescheduling to 10d

parent fec6148c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ update_archlinux_repositories() {
	echo "$(date -u ) - should we schedule old packages?"
	MAX=350
	local THRESHOLD=450
	MINDATE=$(date -u +"%Y-%m-%d %H:%M" -d "14 days ago")
	MINDATE=$(date -u +"%Y-%m-%d %H:%M" -d "10 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.architecture='x86_64' AND sch.date_build_started IS NULL;")
	if [ $CURRENT -le $THRESHOLD ] ; then