Package: kdesdk-scripts
Version: 4:3.4.2-2.1
Severity: normal
Tags: patch

kdemangen.pl parses the output of --help-all to detect the options of the 
program
under scrutiny.  However, it fails to parse options that only have a 
single-letter
short form, e.g., "-f <foo>".  The attached patch fixes that, but the regexp can
of course be written in numerous other ways depending on taste.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages kdesdk-scripts depends on:
ii  perl                          5.8.7-7    Larry Wall's Practical Extraction 
ii  python                        2.3.5-3    An interactive high-level object-o

Versions of packages kdesdk-scripts recommends:
ii  automake1.9 [automaken]    1.9.6-1       A tool for generating GNU Standard
ii  cvs                        1:1.12.9-15   Concurrent Versions System
ii  gawk                       1:3.1.4-2.0.1 GNU awk, a pattern scanning and pr

-- no debconf information
--- /usr/bin/kdemangen.pl       2005-05-23 14:08:41.000000000 +0200
+++ kdemangen.pl        2005-11-04 01:33:08.000000000 +0100
@@ -58,7 +58,7 @@
     my $ret = "";
     foreach( split /\n/, $options )
       {
-       if( /^  (--?[[:alpha:]]+, )?(--[[:alpha:]-]*)( <[[:alpha:] ]*>| 
[[:alpha:]]*)? *(.*)$/ )
+       if( /^  (--?[[:alpha:]]+, )?(--[[:alpha:]-]*|-[[:alpha:]])( <[[:alpha:] 
]*>| [[:alpha:]]*)? *(.*)$/ )
          {
            my $short;
            my $long;

Reply via email to