[xml/sgml-commit] [SCM] linuxdoc-tools package for Debian. branch, experimental, updated. debian/0.9.51-16-g264d63e
Agustin Martin Domingo
agmartin at debian.org
Tue Jul 1 16:59:15 UTC 2008
The following commit has been merged in the experimental branch:
commit a5870465da21d0ae35d4fc25d2bb966a8aa8b77f
Author: Agustin Martin Domingo <agmartin at debian.org>
Date: Thu Jun 19 13:39:10 2008 +0200
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).
diff --git a/debian/changelog b/debian/changelog
index 5b08f31..64db8f6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+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 at debian.org> Thu, 19 Jun 2008 13:38:07 +0200
+
linuxdoc-tools (0.9.50) unstable; urgency=low
* lib/LinuxDocTools.pm:
diff --git a/lib/LinuxDocTools.pm b/lib/LinuxDocTools.pm
index 120fbb2..0de8c5e 100755
--- a/lib/LinuxDocTools.pm
+++ b/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" ){
--
linuxdoc-tools package for Debian.
More information about the debian-xml-sgml-commit
mailing list