Use the variant function for the generic latest-stage3.txt

This commit is contained in:
Raúl Porcel 2013-08-17 18:58:44 +00:00
parent 6cfdd7f82b
commit 35ff9cd616

View file

@ -75,7 +75,8 @@ for ARCH in $ARCHES; do
fi
if [ -n "${stage3_list}" ]; then
echo -e "${header}" >"${OUT_STAGE3}"
echo -e "${stage3_list}" |awk '{print $3}' |grep "$latest_stage3_date" >>${OUT_STAGE3}
# 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}
rm -f current-stage3
# The "latest stage3" concept doesn't apply to the arm variants
# that are pushed on different days of the week.
@ -92,6 +93,7 @@ for ARCH in $ARCHES; do
f="latest-${v}.txt"
echo -e "${header}" >"${f}"
echo -e "${variant_path}" >>${f}
echo -e "${variant_path}" >>${OUT_STAGE3}
rm -f "current-$v"
ln -sf "${variant_path%/*}" "current-$v"
echo "${variant_path}" | sed -e 's,/.*,,g' -e 's,^,/,g' -e 's,$,$,g' >>"${tmpdir}"/.keep.${ARCH}.txt