catalyst-auto: Use xz instead of bz2 for powerpc builds

This commit is contained in:
Matt Turner 2018-09-16 08:09:38 -07:00
parent a42ad6e640
commit 3ee52a24b5
2 changed files with 10 additions and 10 deletions

View file

@ -26,9 +26,9 @@ give_latest_from_dates() {
# Replace the date/time stamp in the filename to "latest".
# Forms we handle:
# stage3-xxx-2018.0.tar.bz2
# stage3-xxx-20180116.tar.bz2
# stage3-xxx-20180116T015819Z.tar.bz2
# stage3-xxx-2018.0.tar.xz
# stage3-xxx-20180116.tar.xz
# stage3-xxx-20180116T015819Z.tar.xz
convert_filename() {
sed -E 's:-20[0-9]+(\.[0-9]+|T[0-9]+Z)?:-latest:g'
}
@ -38,7 +38,7 @@ update_symlinks() {
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default/ppc" ; do
pushd "${d}" >/dev/null
for f in $(ls stage3-ppc-*bz2 | grep -v latest | give_latest_from_dates) ; do
for f in $(ls stage3-ppc-*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)
ln -sf "${f}" "${of}"
done
@ -57,7 +57,7 @@ post_build() {
case ${spec} in
stage3.spec)
upload stage3-ppc-*${TIMESTAMP}*.bz2*
upload stage3-ppc-*${TIMESTAMP}*.xz*
;;
esac

View file

@ -27,9 +27,9 @@ give_latest_from_dates() {
# Replace the date/time stamp in the filename to "latest".
# Forms we handle:
# stage3-xxx-2018.0.tar.bz2
# stage3-xxx-20180116.tar.bz2
# stage3-xxx-20180116T015819Z.tar.bz2
# stage3-xxx-2018.0.tar.xz
# stage3-xxx-20180116.tar.xz
# stage3-xxx-20180116T015819Z.tar.xz
convert_filename() {
sed -E 's:-20[0-9]+(\.[0-9]+|T[0-9]+Z)?:-latest:g'
}
@ -40,7 +40,7 @@ update_symlinks() {
for d in "${BUILD_SRCDIR_BASE}/builds/default/ppc64" ; do
pushd "${d}" >/dev/null
for t in ppc64; do
for f in $(ls stage3-${t}-*bz2 | grep -v latest | give_latest_from_dates) ; do
for f in $(ls stage3-${t}-*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)
ln -sf "${f}" "${of}"
done
@ -63,7 +63,7 @@ post_build() {
upload *${TIMESTAMP}*.iso*
;;
stage3*.spec)
upload stage3-ppc64-*${TIMESTAMP}*.bz2*
upload stage3-ppc64-*${TIMESTAMP}*.xz*
;;
esac