catalyst-auto: Use xz instead of bz2 for powerpc builds
This commit is contained in:
parent
a42ad6e640
commit
3ee52a24b5
2 changed files with 10 additions and 10 deletions
|
@ -26,9 +26,9 @@ give_latest_from_dates() {
|
||||||
|
|
||||||
# Replace the date/time stamp in the filename to "latest".
|
# Replace the date/time stamp in the filename to "latest".
|
||||||
# Forms we handle:
|
# Forms we handle:
|
||||||
# stage3-xxx-2018.0.tar.bz2
|
# stage3-xxx-2018.0.tar.xz
|
||||||
# stage3-xxx-20180116.tar.bz2
|
# stage3-xxx-20180116.tar.xz
|
||||||
# stage3-xxx-20180116T015819Z.tar.bz2
|
# stage3-xxx-20180116T015819Z.tar.xz
|
||||||
convert_filename() {
|
convert_filename() {
|
||||||
sed -E 's:-20[0-9]+(\.[0-9]+|T[0-9]+Z)?:-latest:g'
|
sed -E 's:-20[0-9]+(\.[0-9]+|T[0-9]+Z)?:-latest:g'
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ update_symlinks() {
|
||||||
local d f
|
local d f
|
||||||
for d in "${BUILD_SRCDIR_BASE}/builds/default/ppc" ; do
|
for d in "${BUILD_SRCDIR_BASE}/builds/default/ppc" ; do
|
||||||
pushd "${d}" >/dev/null
|
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)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
ln -sf "${f}" "${of}"
|
ln -sf "${f}" "${of}"
|
||||||
done
|
done
|
||||||
|
@ -57,7 +57,7 @@ post_build() {
|
||||||
|
|
||||||
case ${spec} in
|
case ${spec} in
|
||||||
stage3.spec)
|
stage3.spec)
|
||||||
upload stage3-ppc-*${TIMESTAMP}*.bz2*
|
upload stage3-ppc-*${TIMESTAMP}*.xz*
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@ give_latest_from_dates() {
|
||||||
|
|
||||||
# Replace the date/time stamp in the filename to "latest".
|
# Replace the date/time stamp in the filename to "latest".
|
||||||
# Forms we handle:
|
# Forms we handle:
|
||||||
# stage3-xxx-2018.0.tar.bz2
|
# stage3-xxx-2018.0.tar.xz
|
||||||
# stage3-xxx-20180116.tar.bz2
|
# stage3-xxx-20180116.tar.xz
|
||||||
# stage3-xxx-20180116T015819Z.tar.bz2
|
# stage3-xxx-20180116T015819Z.tar.xz
|
||||||
convert_filename() {
|
convert_filename() {
|
||||||
sed -E 's:-20[0-9]+(\.[0-9]+|T[0-9]+Z)?:-latest:g'
|
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
|
for d in "${BUILD_SRCDIR_BASE}/builds/default/ppc64" ; do
|
||||||
pushd "${d}" >/dev/null
|
pushd "${d}" >/dev/null
|
||||||
for t in ppc64; do
|
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)
|
local of=$(echo "${f}" | convert_filename)
|
||||||
ln -sf "${f}" "${of}"
|
ln -sf "${f}" "${of}"
|
||||||
done
|
done
|
||||||
|
@ -63,7 +63,7 @@ post_build() {
|
||||||
upload *${TIMESTAMP}*.iso*
|
upload *${TIMESTAMP}*.iso*
|
||||||
;;
|
;;
|
||||||
stage3*.spec)
|
stage3*.spec)
|
||||||
upload stage3-ppc64-*${TIMESTAMP}*.bz2*
|
upload stage3-ppc64-*${TIMESTAMP}*.xz*
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue