Comment 2 for bug 1986862

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (master)

Reviewed: https://review.opendev.org/c/starlingx/root/+/854344
Committed: https://opendev.org/starlingx/root/commit/42044a6c173ea5dd1f1fcb275a018b0cd8fedd10
Submitter: "Zuul (22348)"
Branch: master

commit 42044a6c173ea5dd1f1fcb275a018b0cd8fedd10
Author: Yue Tao <email address hidden>
Date: Thu Aug 18 23:55:46 2022 -0700

    debrepack.py: add checksum upon download

    We use the return value of "wget" to check if download succeeds. However
    we observed "wget" returns 0 with a 0-length .tar.gz file. It looks like
    this is caused by "wget" when a connection to the server breaks in the
    middle of download, and yet "wget" reports success (ie returns 0
    status).

    Adding the checksum upon download to check if the download file is
    correct.

    Test Plan:
    Pass: downloader -s

    Closes-bug: 1986862
    Signed-off-by: Yue Tao <email address hidden>
    Change-Id: I5a64f695c5e60ef306eed309ee923556aaa0fd0a