[Pgp-tools-commit] r770 - in trunk: caff debian
Guilhem Moulin
guilhem-guest at moszumanska.debian.org
Fri Feb 20 19:35:19 UTC 2015
Author: guilhem-guest
Date: 2015-02-20 19:35:18 +0000 (Fri, 20 Feb 2015)
New Revision: 770
Modified:
trunk/caff/caff
trunk/debian/changelog
Log:
caff: Add a --debug flag to enable debug messages.
Modified: trunk/caff/caff
===================================================================
--- trunk/caff/caff 2015-02-20 19:35:13 UTC (rev 769)
+++ trunk/caff/caff 2015-02-20 19:35:18 UTC (rev 770)
@@ -104,6 +104,10 @@
Try to import keys from your standard GnuPG keyrings.
+=item B<--debug>
+
+Enable debug messages.
+
=back
=head1 ENVIRONMENT
@@ -443,7 +447,7 @@
};
sub debug($) {
my ($line) = @_;
- #print STDERR "[DEBUG] $line\n";
+ print STDERR "[DEBUG] $line\n" if $params->{debug};
};
sub trace($) {
my ($line) = @_;
@@ -1252,6 +1256,7 @@
'--no-sign' => \$params->{'no-sign'},
'--key-file=s@' => \$params->{'key-files'},
'--keys-from-gnupg' => \$params->{'keys-from-gnupg'},
+ '--debug' => \$params->{'debug'},
)) {
usage(\*STDERR, 1);
};
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2015-02-20 19:35:13 UTC (rev 769)
+++ trunk/debian/changelog 2015-02-20 19:35:18 UTC (rev 770)
@@ -14,6 +14,7 @@
pruning the good keys with -u, gpg(1) croaks with exit status 2 when
there are secret keys without public part.)
+ Print {error,warnings,notice,info} lines on STDERR.
+ + Add a --debug flag to enable debug messages.
* gpgsigs:
+ Add a legend with the different signature types.
+ Mark local signatures as 'L' (formerly they were marked as 'S'), and
More information about the Pgp-tools-commit
mailing list