修复从 BMCLAPI 下载部分旧文件时校验失败的问题 (#4949)
This commit is contained in:
@@ -193,7 +193,7 @@ public class FileDownloadTask extends FetchTask<Void> {
|
|||||||
if (integrityCheck != null) {
|
if (integrityCheck != null) {
|
||||||
algorithm = integrityCheck.getAlgorithm();
|
algorithm = integrityCheck.getAlgorithm();
|
||||||
checksum = integrityCheck.getChecksum();
|
checksum = integrityCheck.getChecksum();
|
||||||
} else if (bmclapiHash != null) {
|
} else if (bmclapiHash != null && DigestUtils.isSha1Digest(bmclapiHash)) {
|
||||||
algorithm = "SHA-1";
|
algorithm = "SHA-1";
|
||||||
checksum = bmclapiHash;
|
checksum = bmclapiHash;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user