mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
gpg: fix downloading multiple keys
each key needs to be provided as separate argument to gpg1 --recv-keys
This commit is contained in:
committed by
Lorenzo Bolla
parent
5a65ce6adb
commit
209b030502
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user