aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/auth.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx
index 11c18b5..0eef623 100644
--- a/bpkg/auth.cxx
+++ b/bpkg/auth.cxx
@@ -82,13 +82,15 @@ namespace bpkg
if (co.trust_yes ())
{
- if (verb)
- info << "trusting unsigned repository " << rl.canonical_name ();
+ if (verb >= 2)
+ info << "unsigned repository " << rl.canonical_name () <<
+ " trusted by command line";
}
else
{
- (co.trust_no () ? error : warn) << "repository " << rl.canonical_name ()
- << " is unsigned";
+ (co.trust_no ()
+ ? error
+ : warn) << "repository " << rl.canonical_name () << " is unsigned";
}
if (co.trust_no () ||
@@ -485,9 +487,9 @@ namespace bpkg
if (trust)
{
- if (verb)
- info << "trusting non-authenticated certificate for repository "
- << rl.canonical_name ();
+ if (verb >= 2)
+ info << "certificate for repository " << rl.canonical_name () <<
+ " authenticated by command line";
return cert;
}