copy_buildsync.sh: simplify the latest-stage3 symlink checks
The current code is a bit overwrought when it's a simple string compare.
This commit is contained in:
parent
867545ebd8
commit
7c16ed27d6
|
@ -123,14 +123,17 @@ process_arch() {
|
||||||
|
|
||||||
# In the new variant preserve code there is a better way to do this
|
# In the new variant preserve code there is a better way to do this
|
||||||
#echo -e "${stage3_list}" |awk '{print $3}' |grep "$latest_stage3_date" >>${OUT_STAGE3}
|
#echo -e "${stage3_list}" |awk '{print $3}' |grep "$latest_stage3_date" >>${OUT_STAGE3}
|
||||||
rm -f current-stage3
|
|
||||||
|
|
||||||
# The "latest stage3" concept doesn't apply to the arm/hppa/s390/sh variants
|
# The "latest stage3" concept works for only a few arches -- ones that
|
||||||
# that are pushed on different days of the week.
|
# do not have more than one stage3 target per arch (i.e. multilib, etc...).
|
||||||
# Disable it for amd64/x86 as well as any failures cause confusion to users
|
case ${ARCH} in
|
||||||
if [[ ! $(echo ${outdir} | egrep 'amd64|arm|hppa|ppc|s390|sh|x86') ]]; then
|
amd64|arm|hppa|ppc|s390|sh|x86)
|
||||||
ln -sf "$latest_stage3_date" current-stage3
|
rm -f current-stage3
|
||||||
fi
|
;;
|
||||||
|
*)
|
||||||
|
ln -sfT "$latest_stage3_date" current-stage3
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# New variant preserve code
|
# New variant preserve code
|
||||||
|
|
Loading…
Reference in a new issue