Fix LinuxDocTools.pm wrong parsing of options with standalone 0

lib/LinuxDocTools.pm->(process_options):

When checking for an explicit backend option, do not shift in the
while condition itself, 0 in options like '-s 0' will otherwise
stop looping (Closes: #486965).
parent 870695b4
linuxdoc-tools (0.9.51) unstable; urgency=low
* lib/LinuxDocTools.pm:
- (process_options): When checking for an explicit backend option,
do not shift in the while condition itself, 0 in options like
'-s 0' will otherwise stop looping (Closes: #486965).
-- Agustin Martin Domingo <agmartin@debian.org> Thu, 19 Jun 2008 13:38:07 +0200
linuxdoc-tools (0.9.50) unstable; urgency=low
* lib/LinuxDocTools.pm:
......
......@@ -368,7 +368,11 @@ sub process_options {
# Try getting the format. We need to do this here so process_options
# knows which is the format and which format options are allowed
while ( $_ = shift @tmpargs ){ # Process the backend option first.
# First, see if we have an explicit backend option by looping over command line.
# Do not shift in the while condition itself, 0 in options like '-s 0' will
# otherwise stop looping
while ( @tmpargs ){
$_ = shift @tmpargs;
if ( s/--backend=// ){
$format = $_;
} elsif ( $_ eq "-B" ){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment