aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-20 18:29:45 -0400
committerMike Frysinger <vapier@gentoo.org>2016-03-20 18:29:45 -0400
commitffa42e7a104454b10466badcbc0539fcfdfc27b4 (patch)
tree8ee441c4394359f1d16402a2943b1fe917382e31 /scripts
parentcopy_buildsync.sh: simplify the latest-stage3 symlink checks (diff)
downloadreleng-ffa42e7a104454b10466badcbc0539fcfdfc27b4.tar.gz
releng-ffa42e7a104454b10466badcbc0539fcfdfc27b4.tar.bz2
releng-ffa42e7a104454b10466badcbc0539fcfdfc27b4.zip
copy_buildsync.sh: simplify the latest-iso symlink checks
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/copy_buildsync.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh
index 4d9f0b1b..1d459216 100755
--- a/scripts/copy_buildsync.sh
+++ b/scripts/copy_buildsync.sh
@@ -112,11 +112,18 @@ process_arch() {
if [ -n "${iso_list}" ]; then
echo -e "${header}" >"${OUT_ISO}"
- if [[ ! $(echo ${iso_list} | egrep "amd64|x86") ]]; then
- echo -e "${iso_list}" |awk '{print $3}' | grep "$latest_iso_date" >>${OUT_ISO}
+ # Some arches produce more than one type of iso.
+ # Only apply the current-iso link logic to them.
+ # TODO: Should make this dynamic based on the iso list.
+ case ${ARCH} in
+ amd64|x86)
rm -f current-iso
- ln -sf "$latest_iso_date" current-iso
- fi
+ ;;
+ *)
+ echo -e "${iso_list}" |awk '{print $3}' | grep "$latest_iso_date" >>${OUT_ISO}
+ ln -sfT "$latest_iso_date" current-iso
+ ;;
+ esac
fi
if [ -n "${stage3_list}" ]; then
echo -e "${header}" >"${OUT_STAGE3}"