Source and build check fine-tuning
This commit is contained in:
parent
4829551112
commit
a558f51b5d
@ -902,7 +902,8 @@ bool PackageConf::can_check_source_upload() {
|
|||||||
|
|
||||||
if (upload_ok && !source_check_ok) return true;
|
if (upload_ok && !source_check_ok) return true;
|
||||||
else if (!upload_ok && source_check_ok) return false;
|
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);
|
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;
|
if (!build_check_ok && source_check_ok) return true;
|
||||||
else if (!build_check_ok && !source_check_ok) return false;
|
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 - (30 * 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 && (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);
|
else return source_check_ok && build_check_ok && (build_check_time <= source_check_time);
|
||||||
}
|
}
|
||||||
// End of PackageConf
|
// End of PackageConf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user