author | Simon Fraser <sfraser@mozilla.com> |
Tue, 17 Apr 2018 08:03:54 +0100 | |
changeset 414074 | 25682f0fb6488aded7f3aec579b48297ccba7395 |
parent 414073 | c0f28a370935a094926f22d3d49ac68ee2d87256 |
child 414075 | 44662c81a04d0e0f5a2f10f98bdf1b9ffbcdf19f |
push id | 33858 |
push user | ncsoregi@mozilla.com |
push date | Tue, 17 Apr 2018 21:55:44 +0000 |
treeherder | mozilla-central@d6eb5597d744 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | catlee |
bugs | 1454411 |
milestone | 61.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
taskcluster/docker/funsize-update-generator/scripts/mbsdiff_hook.sh | file | annotate | diff | comparison | revisions |
--- a/taskcluster/docker/funsize-update-generator/scripts/mbsdiff_hook.sh +++ b/taskcluster/docker/funsize-update-generator/scripts/mbsdiff_hook.sh @@ -57,17 +57,17 @@ print_usage(){ echo "-u post hook - upload patch to cache for future use" echo "" echo "PATH-FROM-URL : path on disk for source file" echo "PATH-TO-URL : path on disk for destination file" echo "PATH-PATCH : path on disk for patch between source and destination" } upload_patch(){ - if [ "$(stat -f "%z" "$2")" -lt ${CACHE_THRESHOLD} ] + if [ "$(stat -c "%s" "$2")" -lt ${CACHE_THRESHOLD} ] then return 0 fi sha_from=$(getsha512 "$1") sha_to=$(getsha512 "$2") patch_path="$3" patch_filename="$(basename "$3")" @@ -89,17 +89,17 @@ upload_patch(){ echo "${patch_path} failed to be uploaded to s3://${AWS_BUCKET_NAME}" return 1 fi return 0 } get_patch(){ # $1 and $2 are the /path/to/filename - if [ "$(stat -f "%z" "$2")" -lt ${CACHE_THRESHOLD} ] + if [ "$(stat -c "%s" "$2")" -lt ${CACHE_THRESHOLD} ] then return 1 fi sha_from=$(getsha512 "$1") sha_to=$(getsha512 "$2") destination_file="$3" s3_filename="$(basename "$3")"