commit:     2736e468eb55e5e46fd448bb60c922d43ef12ac0
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 20 23:51:56 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Mar 20 23:51:56 2016 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=2736e468

copy_buildsync.sh: handle netboot artifacts

Make sure we process netboot kernels as releases too.

 scripts/copy_buildsync.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh
index ac823fe..a917b9d 100755
--- a/scripts/copy_buildsync.sh
+++ b/scripts/copy_buildsync.sh
@@ -153,10 +153,11 @@ process_arch() {
        fi
 
        # New variant preserve code
-       variants=$(find 20* \( -iname '*.iso' -o "${EXTENSIONS[@]}" \) -printf 
'%f\n' | sed  -e 's,-20[012][0-9]\{5\}.*,,g' -r | sort | uniq)
+       find_variants=( '(' -iname '*.iso' -o -name 'netboot-*' -o 
"${EXTENSIONS[@]}" ')' )
+       variants=$(find 20* "${find_variants[@]}" -printf '%f\n' | sed  -e 
's,-20[012][0-9]\{5\}.*,,g' -r | sort -u)
        echo -n '' >"${tmpdir}"/.keep.${ARCH}.txt
        for v in $variants ; do
-               variant_path=$(find 20* -iname "${v}-20*" \( "${EXTENSIONS[@]}" 
-o -iname '*.iso' \) -print | sed -e "s,.*/$a/autobuilds/,,g" | sort -k1,1 -t/ 
| tail -n1 )
+               variant_path=$(find 20* -iname "${v}-20*" "${find_variants[@]}" 
-print | sed -e "s,.*/$a/autobuilds/,,g" | sort -k1,1 -t/ | tail -n1 )
                if [ -z "${variant_path}" -o ! -e "${variant_path}" ]; then
                        echo "$ARCH: Variant ${v} is missing" 1>&2
                        continue

Reply via email to