This commit is contained in:
simonzhangsz committed 2023-08-20 18:35:46 +08:00
1 parent 950182d87a
commit 7c32ff33b8
1 file changed
+1 -1
+1 -1
View File
@@ -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)