Merge "Correctly get the age of tarballs through their symlink"

This commit is contained in:
Zuul 2020-12-18 18:16:47 +00:00 committed by Gerrit Code Review
commit 6a24db9dd0
2 changed files with 4 additions and 4 deletions

View File

@ -787,7 +787,7 @@ build_dir_srpm () {
if [ "x$PATH_LIST" == "x" ]; then if [ "x$PATH_LIST" == "x" ]; then
echo "0" echo "0"
else else
AGE2=$(find $PATH_LIST -type f -exec stat --format '%Y' "{}" \; | grep -v '[/][.]git$' | grep -v '[/][.]git[/]' | sort -nr | head -n 1) AGE2=$(find -L $PATH_LIST -type f -exec stat --format '%Y' "{}" \; | grep -v '[/][.]git$' | grep -v '[/][.]git[/]' | sort -nr | head -n 1)
echo "$AGE2" echo "$AGE2"
fi fi
) )
@ -1138,7 +1138,7 @@ build_dir_spec () {
if [ "x$PATH_LIST" == "x" ]; then if [ "x$PATH_LIST" == "x" ]; then
echo "0" echo "0"
else else
AGE2=$(find $PATH_LIST -type f -exec stat --format '%Y' "{}" \; | grep -v '[/][.]git$' | grep -v '[/][.]git[/]' | sort -nr | head -n 1) AGE2=$(find -L $PATH_LIST -type f -exec stat --format '%Y' "{}" \; | grep -v '[/][.]git$' | grep -v '[/][.]git[/]' | sort -nr | head -n 1)
echo "$AGE2" echo "$AGE2"
fi fi
) )

View File

@ -765,7 +765,7 @@ build_dir_srpm () {
if [ "x$PATH_LIST" == "x" ]; then if [ "x$PATH_LIST" == "x" ]; then
echo "0" echo "0"
else else
AGE2=$(find $PATH_LIST -type f -exec stat --format '%Y' "{}" \; | grep -v '[/][.]git$' | grep -v '[/][.]git[/]' | sort -nr | head -n 1) AGE2=$(find -L $PATH_LIST -type f -exec stat --format '%Y' "{}" \; | grep -v '[/][.]git$' | grep -v '[/][.]git[/]' | sort -nr | head -n 1)
echo "$AGE2" echo "$AGE2"
fi fi
) )
@ -1115,7 +1115,7 @@ build_dir_spec () {
if [ "x$PATH_LIST" == "x" ]; then if [ "x$PATH_LIST" == "x" ]; then
echo "0" echo "0"
else else
AGE2=$(find $PATH_LIST -type f -exec stat --format '%Y' "{}" \; | grep -v '[/][.]git$' | grep -v '[/][.]git[/]' | sort -nr | head -n 1) AGE2=$(find -L $PATH_LIST -type f -exec stat --format '%Y' "{}" \; | grep -v '[/][.]git$' | grep -v '[/][.]git[/]' | sort -nr | head -n 1)
echo "$AGE2" echo "$AGE2"
fi fi
) )