Commit 24e88659 authored by Loic's avatar Loic
Browse files

HBSD: use fetch_update for 'download only'

We now use the fetch_update for 'download only' function.
This function has the advantage to control the checksum of the download file.
Please note that there is no more resumption of the interrupted download.
Reported-by: Shawn Webb's avatarShawn Webb <>
Signed-off-by: Loic's avatarLoic <>
(cherry picked from commit b61c6a82)
parent 47b993ce
......@@ -406,7 +406,12 @@ fetch_update() {
# Step 3: Untar the update archive
# Step 3: Check whether to continue
if [ ${downloadonly} = 1 ]; then
exit 0
# Step 4: Untar the update archive
${TAR} -xf ${tmpdir}/update.tar \
-C ${tmpdir}
......@@ -1260,9 +1265,8 @@ main() {
if [ ${downloadonly} = 1 ]; then
debug_print "[*] Download the latest update to the current folder."
${FETCH} ${net_flag} -o update-$(get_version).tar -arR \
debug_print "[*] Download the latest update in ${tmpdir}"
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment