From 7c32ff33b80947ae5d11dc55d0234d5a3d258e84 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Sun, 20 Aug 2023 18:35:46 +0800 Subject: [PATCH] d --- features/cm/software.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cm/software.go b/features/cm/software.go index a1a3046c..26cb23be 100644 --- a/features/cm/software.go +++ b/features/cm/software.go @@ -130,7 +130,7 @@ func UploadSoftwareFile(w http.ResponseWriter, r *http.Request) { log.Debugf("cmsFilePath:%s rpmFilePath:%s publicKey:%s", rpmFilePath, cmsFilePath, config.GetYamlConfig().Auth.PublicKey) result := verify_signature(config.GetYamlConfig().Auth.PublicKey, cmsFilePath, rpmFilePath) log.Debug("result:", result.String()) - if strings.Contains(result.String(), SoftwareVerifiedOk) == true { + if strings.Contains(result.String(), SoftwareVerifiedOk) != true { err = global.ErrCMNotMatchSignFile log.Error(err) services.ResponseInternalServerError500ProcessError(w, err)