From 1f53e171bcce58a34bf00b7749b4a536d9ea8883 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 21 Jul 2015 14:04:05 -0700 Subject: [PATCH] updating vendored gotuf with updating signing error messages Signed-off-by: David Lawrence (github: endophage) --- Godeps/Godeps.json | 2 +- .../src/github.com/endophage/gotuf/signed/sign.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 2dca12bdf5..bb89f04816 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -63,7 +63,7 @@ }, { "ImportPath": "github.com/endophage/gotuf", - "Rev": "a0303e9689b5bf4cccb92b5ebb172f23159fcfbb" + "Rev": "5be7693587dc2f3c6b35fd1394fcc4e098b4f643" }, { "ImportPath": "github.com/go-sql-driver/mysql", diff --git a/Godeps/_workspace/src/github.com/endophage/gotuf/signed/sign.go b/Godeps/_workspace/src/github.com/endophage/gotuf/signed/sign.go index 7e833147e3..8bab441009 100644 --- a/Godeps/_workspace/src/github.com/endophage/gotuf/signed/sign.go +++ b/Godeps/_workspace/src/github.com/endophage/gotuf/signed/sign.go @@ -1,10 +1,11 @@ package signed import ( + "fmt" "github.com/Sirupsen/logrus" "github.com/endophage/gotuf/data" "github.com/endophage/gotuf/errors" - "fmt" + "strings" ) // Sign takes a data.Signed and a key, calculated and adds the signature @@ -19,7 +20,7 @@ func Sign(service CryptoService, s *data.Signed, keys ...data.PublicKey) error { keyIDMemb[key.ID()] = struct{}{} keyIDs = append(keyIDs, key.ID()) } - logrus.Debugf("Generated list of signing IDs: %v", keyIDs) + logrus.Debugf("Generated list of signing IDs: %s", strings.Join(keyIDs, ", ")) for _, sig := range s.Signatures { if _, ok := keyIDMemb[sig.KeyID]; ok { continue @@ -32,7 +33,7 @@ func Sign(service CryptoService, s *data.Signed, keys ...data.PublicKey) error { } if len(newSigs) < 1 { return errors.ErrInsufficientSignatures{ - Name: fmt.Sprint("Cryptoservice failed to produce any signatures for keys %v", keyIDs), + Name: fmt.Sprint("Cryptoservice failed to produce any signatures for keys with IDs: %s", strings.Join(keyIDs, ", ")), Err: nil, } }