From 8930f0787666224eb200150194b6daf8e90c0901 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 01 Jul 2020 21:12:03 -0400 Subject: profile/proteanos: Cache feeds manifest --- (limited to 'src') diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh index 0a7b935..c41eada 100644 --- a/src/profile/proteanos.sh +++ b/src/profile/proteanos.sh @@ -36,6 +36,7 @@ start() rm -f "${SCRIPT}" } ' +prof_proteanos_manifest='' prof_proteanos_detect_root() { @@ -117,15 +118,19 @@ prof_proteanos_validate_archplat() shift 4 local archplat= + [ -z "${prof_proteanos_manifest}" ] && \ + prof_proteanos_manifest="$(${WGET} -q -O - -- \ + "${mirror}/feeds/${suite}/Manifest")" + while read -r archplat; do case "${archplat}" in - "${arch}/${plat}") + all/*/* | */all/*) ;; + "${arch}/${plat}/"*) return 0 ;; esac done <<-EOF - $(${WGET} -q -O - -- "${mirror}/feeds/${suite}/Manifest" | sed \ - 's|/[^/]*$||; /^all\//d; /\/all$/d;') + ${prof_proteanos_manifest} EOF return 1 -- cgit v0.9.1