aboutsummaryrefslogtreecommitdiff
path: root/buildos
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-29 15:06:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-29 15:06:55 +0200
commit73dfb006998bfca6410411c698ac52595264bb9c (patch)
treeaa98bb9b25548a6be8093bd9a3c30534507f76b1 /buildos
parent546ccab3f25b3d6f80dd4a392b25bed34a5c2dc0 (diff)
Add buildos.toolchain_trust=<repo-fp> parameter
Diffstat (limited to 'buildos')
-rwxr-xr-xbuildos9
1 files changed, 9 insertions, 0 deletions
diff --git a/buildos b/buildos
index c91c554..872a5a0 100755
--- a/buildos
+++ b/buildos
@@ -101,6 +101,15 @@ else
tc_root="/build/tftp"
tc_path="$tc_root/$tc_file"
tc_ver=
+
+ # If buildos.toolchain_trust was not specified, set it to "no" so that
+ # we don't prompt if the repository happens to be signed.
+ #
+ if [ -n "$toolchain_trust" ]; then
+ tc_trust="$toolchain_trust"
+ else
+ tc_trust="no"
+ fi
fi
# Calculate the file checksum using the shaNNNsum utility.