Source and build check fine-tuning

This commit is contained in:
Simon Quigley 2025-02-08 20:13:38 -06:00
parent 4829551112
commit a558f51b5d

View File

@ -902,7 +902,8 @@ bool PackageConf::can_check_source_upload() {
if (upload_ok && !source_check_ok) return true;
else if (!upload_ok && source_check_ok) return false;
else if (upload_ok && source_check_ok && !source_check_successful && (source_check_time >= (now - (60 * 60 * 1000)))) return true;
else if (upload_ok && source_check_ok && !source_check_successful && (source_check_time >= (now - (30 * 60 * 1000)))) return false;
else if (upload_ok && source_check_ok && !source_check_successful && (upload_time >= (now - (24 * 60 * 60 * 1000)))) return true;
else return upload_ok && source_check_ok && (source_check_time <= upload_time);
}
@ -928,8 +929,8 @@ bool PackageConf::can_check_builds() {
if (!build_check_ok && source_check_ok) return true;
else if (!build_check_ok && !source_check_ok) return false;
else if (source_check_ok && build_check_ok && !build_check_successful && (build_check_time >= (now - (60 * 60 * 1000)))) return false;
else if (source_check_ok && build_check_ok && !build_check_successful && (build_check_time >= (now - (4 * 24 * 60 * 60 * 1000)))) return true;
else if (source_check_ok && build_check_ok && !build_check_successful && (build_check_time >= (now - (30 * 60 * 1000)))) return false;
else if (source_check_ok && build_check_ok && !build_check_successful && (source_check_time >= (now - (4 * 24 * 60 * 60 * 1000)))) return true;
else return source_check_ok && build_check_ok && (build_check_time <= source_check_time);
}
// End of PackageConf