mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-15 11:57:59 +00:00
system test t12_api sends empty keyRef string, making gpg fail
This commit is contained in:
+5
-2
@@ -35,10 +35,13 @@ func (g *GpgSigner) SetBatch(batch bool) {
|
|||||||
|
|
||||||
// SetKey sets key ID to use when signing files
|
// SetKey sets key ID to use when signing files
|
||||||
func (g *GpgSigner) SetKey(keyRef string) {
|
func (g *GpgSigner) SetKey(keyRef string) {
|
||||||
|
keyRef = strings.TrimSpace(keyRef)
|
||||||
|
if keyRef != "" {
|
||||||
if g.keyRefs == nil {
|
if g.keyRefs == nil {
|
||||||
g.keyRefs = []string{strings.TrimSpace(keyRef)}
|
g.keyRefs = []string{keyRef}
|
||||||
} else {
|
} else {
|
||||||
g.keyRefs = append(g.keyRefs, strings.TrimSpace(keyRef))
|
g.keyRefs = append(g.keyRefs, keyRef)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user