gpg: fix downloading multiple keys

each key needs to be provided as separate argument to gpg1 --recv-keys
This commit is contained in:
André Roth
2021-04-01 17:21:44 +00:00
committed by Lorenzo Bolla
parent 5a65ce6adb
commit 209b030502

View File

@@ -57,7 +57,9 @@ func apiGPGAddKey(c *gin.Context) {
}
if len(b.GpgKeyID) > 0 {
args = append(args, "--recv-keys", b.GpgKeyID)
keys := strings.Fields(b.GpgKeyID)
args = append(args, "--recv-keys")
args = append(args, keys...)
}
finder := pgp.GPG1Finder()