Package: po4a
Version: 0.22-1
Severity: wishlist
Tags: patch
--quiet should set $opts{verbose} to 0, rather than -1 to supress
messages.
The following patch assumes that the intended behaviour was:
po4a conf # verbose=1 (default)
po4a -v conf # verbose=1
po4a -vv conf # verbose=2
po4a -q conf # verbose=0
po4a -d conf # verbose=1
po4a -q -d conf # verbose=1 (silly, but -d overrides -q)
po4a -vv -d conf # verbose=2
--bod
--- po4a.orig 2005-11-03 08:41:11.000000000 +1100
+++ po4a 2005-12-07 09:02:15.000000000 +1100
@@ -311,9 +311,9 @@
'option|o=s' => [EMAIL PROTECTED]
) or pod2usage();
- $opts{"verbose"} = scalar @verbose;
- $opts{"verbose"} = 1 if $opts{"debug"};
- $opts{"verbose"} = -1 if $opts{"quiet"};
+ $opts{"verbose"} = scalar @verbose || 1;
+ $opts{"verbose"} = 0 if $opts{"quiet"};
+ $opts{"verbose"} ||= 1 if $opts{"debug"};
# options to transmit to the modules
%{$opts{"options"}} = (
@@ -538,7 +538,8 @@
}
$potfile->write($pot_filename);
-print wrap_msg(gettext(" (%d entries)"), $potfile->count_entries());
+print wrap_msg(gettext(" (%d entries)"), $potfile->count_entries())
+ if $po4a_opts{"verbose"};
# update all po files
my $lang;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]