summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-07-01 21:12:03 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-07-02 13:24:30 (EDT)
commit8930f0787666224eb200150194b6daf8e90c0901 (patch)
treec8cc83b6c47b51dfe09a6f2d8add12e112811772
parent4e207566f99c74b7b4eae64aa4603ef0fe2a65a6 (diff)
profile/proteanos: Cache feeds manifest
-rw-r--r--src/profile/proteanos.sh11
1 files changed, 8 insertions, 3 deletions
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