Your message dated Sat, 08 May 2010 13:50:05 +0000
with message-id <[email protected]>
and subject line Bug#579063: fixed in libparse-debian-packages-perl 0.01-2
has caused the Debian Bug report #579063,
regarding libparse-debian-packages-perl: Parse error when description body 
contains a colon.
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
579063: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579063
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libparse-debian-packages-perl
Version: 0.01-1
Severity: normal
Tags: patch

When there is a colon in the text description of a package, parsing fails
by treating it as if a key for the returned hash has been found.  So as 
well as the normal keys, such as Section, Filename, etc., some random keys
get created occasionally.  For instance, the first package in the current
Packages file for sid, 2vcard, comes up with an unexpected key of
'and alias files from the following formats'.

The attached patch fixes this; it also makes next() return a reference to
%package rather than a copy of it, which seems to run more quickly.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-epos (PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libparse-debian-packages-perl depends on:
ii  libyaml-perl                  0.71-1     YAML Ain't Markup Language
ii  perl                          5.10.1-12  Larry Wall's Practical Extraction 

libparse-debian-packages-perl recommends no packages.

libparse-debian-packages-perl suggests no packages.

-- no debconf information
--- Packages.pm.orig    2010-04-24 23:00:15.000000000 +0100
+++ Packages.pm 2010-04-24 23:42:44.000000000 +0100
@@ -15,8 +15,8 @@
 
     my %parsed;
     while (<$fh>) {
-        last if /^$/;
-        if (my ($key, $value) = m/^(.*): (.*)/) {
+        return \%parsed if (/^$/);
+        if (my ($key, $value) = m/^(\S*): (.*)/) {
             $parsed{$key} = $value;
         }
         else {
@@ -26,7 +26,7 @@
         }
     }
 
-    return %parsed;
+    return;
 }
 
 1;
@@ -44,8 +44,8 @@
  my $fh = IO::File->new("Packages");
 
  my $parser = Parse::Debian::Packages->new( $fh );
- while (my %package = $parser->next) {
-     print Dump \%package;
+ while (my $package = $parser->next) {
+     print Dump \$package;
  }
 
 =head1 DESCRIPTION

--- End Message ---
--- Begin Message ---
Source: libparse-debian-packages-perl
Source-Version: 0.01-2

We believe that the bug you reported is fixed in the latest version of
libparse-debian-packages-perl, which is due to be installed in the Debian FTP 
archive:

libparse-debian-packages-perl_0.01-2.debian.tar.gz
  to 
main/libp/libparse-debian-packages-perl/libparse-debian-packages-perl_0.01-2.debian.tar.gz
libparse-debian-packages-perl_0.01-2.dsc
  to 
main/libp/libparse-debian-packages-perl/libparse-debian-packages-perl_0.01-2.dsc
libparse-debian-packages-perl_0.01-2_all.deb
  to 
main/libp/libparse-debian-packages-perl/libparse-debian-packages-perl_0.01-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ansgar Burchardt <[email protected]> (supplier of updated 
libparse-debian-packages-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 29 Apr 2010 17:12:31 +0900
Source: libparse-debian-packages-perl
Binary: libparse-debian-packages-perl
Architecture: source all
Version: 0.01-2
Distribution: unstable
Urgency: low
Maintainer: Debian Perl Group <[email protected]>
Changed-By: Ansgar Burchardt <[email protected]>
Description: 
 libparse-debian-packages-perl - parse the data from a Debian Packages.gz
Closes: 579063
Changes: 
 libparse-debian-packages-perl (0.01-2) unstable; urgency=low
 .
   [ Frank Lichtenheld ]
   * s/debian/Debian/ in Description
 .
   [ gregor herrmann ]
   * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
     field (source stanza); Homepage field (source stanza). Removed: XS-
     Vcs-Svn fields.
   * debian/watch: use dist-based URL.
   * Set Standards-Version to 3.8.0 (no changes).
   * Move libmodule-build-perl to Build-Depends and add "perl (>= 5.10)" as an
     alternative.
 .
   [ Joachim Breitner ]
   * Removed myself from uploaders.
 .
   [ Ansgar Burchardt ]
   * Fix error when description contains lines with colons. (Closes: #579063)
     + new patch: bug-579063.patch
   * Refresh rules for debhelper 7.
   * No longer install README.
   * Use source format 3.0 (quilt).
   * Convert debian/copyright to proposed machine-readable format.
   * debian/watch: Use extended regular expression to match upstream releases.
   * Bump Standards-Version to 3.8.4.
   * Add myself to Uploaders.
Checksums-Sha1: 
 fed2b4d342496e5ceedfa479ff900d4b14a1ac81 2113 
libparse-debian-packages-perl_0.01-2.dsc
 1ee00c7aa3d2e474ac8899f2733ba5eadc0d7d95 2228 
libparse-debian-packages-perl_0.01-2.debian.tar.gz
 47d46f9f0543dfc43ff17d46b77a3b65cbd28939 5660 
libparse-debian-packages-perl_0.01-2_all.deb
Checksums-Sha256: 
 d40139c242bae891762b1f688531ea359cdb59b6c03e803e0af7e984cd3b2b62 2113 
libparse-debian-packages-perl_0.01-2.dsc
 baf00584c1b3209a1fc4d894a9280106a7aaa700c094af54011c6db30e78d2ab 2228 
libparse-debian-packages-perl_0.01-2.debian.tar.gz
 70242f10c2c08d77928c22444750e00933fdfcb25c27dc1f69d5872dd1325962 5660 
libparse-debian-packages-perl_0.01-2_all.deb
Files: 
 712bbae735a53f46a8386fbf8fab5b53 2113 perl optional 
libparse-debian-packages-perl_0.01-2.dsc
 47d225f778afbb620510970ee742e21f 2228 perl optional 
libparse-debian-packages-perl_0.01-2.debian.tar.gz
 d2b30fdf92420bf1c64043cf2958d89f 5660 perl optional 
libparse-debian-packages-perl_0.01-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJL5Wa/AAoJELs6aAGGSaoGDfgQAKO41NpnxVukO2C4USNKz3E+
Gn2GjXq/E5Jh4CC9dMrZFFXdZFY3lxAlNuiT7CyOs9WDowNCToJlgs1jPMoKKYh2
+Q/kmYxfp7dR3dTyQHn3t4VfCD/Cv5jRwHBS/JOBjGj2JPelUJGTxUNnBDUvk3eA
D4WgUjZa2ghdSnos003v7M85QXrGwf5Bx4kYGYpxP+TaLeyt2YYwGSHniB0mWyM/
KCNCjU2XDUQTrAp63a36tGvPatKNqlkvIDiMmlYYw3je8kJDPtAGwtvH+1oes+uZ
yxjgo/DEO06ef6g7JujbPfiSakC4DHKl6hDXuBY7edvR4MtlqvSJzOmbKq5EED2z
A/Y1bNbF8oKuQO2ogjRJ+diodL18WASRQIU8r9ekqcHGfJBPDodT/52lqhIKBxt5
jh+qgcDzoccgbt3AY+aX7XntKJ+Lgq+FX3/m2A70L1kdk1CTX3ki4eGiw9gKBnSK
1QjOzK0tp+x54DN869JqBpjCjo9PkuApN/5OBhN2hvVO5g7rTXV4XHOS5dhQjA0e
daUPznq5xeYzT96BBGCqstWIe2dYdcxwjsCFtGVO8YT5FcXzVIWjARxBtnfrZzmw
BJs8iHgi0c4a4IGBdxA7oLMy2uBRx4K5sR2M9n0czjBxgTYey7lzAziGytKU9xVw
eWvnfCTPR+oEmDAzYK6x
=VEiy
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to