[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#337342: marked as done (kdemangen.pl does not parse short-only options)



Your message dated Sat, 13 May 2006 15:11:44 +0200
with message-id <200605131511.44647.pierre.habouzit@m4x.org>
and subject line fixed upstream in 3.5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (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;

--- End Message ---
--- Begin Message ---
Version: 4:3.5.0

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgptwvrZD7Y66.pgp
Description: PGP signature


--- End Message ---

Reply to: