Your message dated Sat, 03 Apr 2010 18:57:34 +0000
with message-id <[email protected]>
and subject line Bug#568760: fixed in python-central 0.6.15
has caused the Debian Bug report #568760,
regarding Stricter and more robust parsing of XS-PV and debian/pyversions
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.)


-- 
568760: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568760
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-central
Version: 0.6.14+nmu2
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch lucid

        Hi

 The attached two patches chane dh_pycentral's parsing of XS-PV to only
 look it up in the first paragraph (see Debian #567941) and of
 debian/pyversions to skip newlines.  This makes dh_pycentral more
 robust and more strict.

   Thanks,
-- 
Loïc Minier
=== modified file 'debian/changelog'
--- debian/changelog	2010-01-15 11:03:11 +0000
+++ debian/changelog	2010-02-07 15:43:54 +0000
@@ -1,3 +1,12 @@
+python-central (0.6.11ubuntu12) UNRELEASED; urgency=low
+
+  * dh_pycentral: when parsing debian/control, strip trailing spaces, skip
+    empty lines before the first paragraphs, and only search for
+    XS-Python-Version in the general paragraph (the first one, for the source
+    package); see Debian #567941.
+
+ -- Loïc Minier <[email protected]>  Sun, 07 Feb 2010 16:41:12 +0100
+
 python-central (0.6.11ubuntu11) lucid; urgency=low
 
   * dh_pycentral:

=== modified file 'dh_pycentral'
--- dh_pycentral	2010-01-15 11:03:11 +0000
+++ dh_pycentral	2010-02-07 15:43:54 +0000
@@ -178,8 +178,15 @@
 my $pyversions_field = "";
 my $python_header = "";
 {
+	my $paraborder = 1;
 	open(CONTROL, "debian/control"); # Can't fail, dh_testdir has already been called
 	while (my $source = <CONTROL>) {
+	    $source =~ s/\s*\n$//;
+	    if ($source =~ m/^$/) {
+		next if $paraborder;
+		last;
+	    }
+	    $paraborder = 0;
 	    if ($source =~ m/^XS-Python-Version: \s*(.*)$/m) {
 		$python_header = $1;
 		chomp($python_header);

=== modified file 'debian/changelog'
--- debian/changelog	2010-02-07 15:43:54 +0000
+++ debian/changelog	2010-02-07 15:56:27 +0000
@@ -4,6 +4,7 @@
     empty lines before the first paragraphs, and only search for
     XS-Python-Version in the general paragraph (the first one, for the source
     package); see Debian #567941.
+  * dh_pycentral: when parsing debian/pyversions, skip and strip newlines.
 
  -- Loïc Minier <[email protected]>  Sun, 07 Feb 2010 16:41:12 +0100
 

=== modified file 'dh_pycentral'
--- dh_pycentral	2010-02-07 15:43:54 +0000
+++ dh_pycentral	2010-02-07 15:56:27 +0000
@@ -199,11 +199,16 @@
 # pyversions describes the list of python versions that this package can
 # work with
 if (-e "debian/pyversions") {
+	# read first non-empty line
+	local $/ = "";
 	open(PYVERS, "debian/pyversions") || error("Can't open debian/pyversions: $!");
 	$pyversions_field = <PYVERS>;
+	# strip newlines
 	chomp($pyversions_field);
 	close(PYVERS);
 }
+# strip spaces
+$pyversions_field =~ s/^\s*(.*?)\s*$/\1/;
 verbose_print("Pyversions field: $pyversions_field");
 
 # Extract a list of officially supported Python versions


--- End Message ---
--- Begin Message ---
Source: python-central
Source-Version: 0.6.15

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

python-central_0.6.15.dsc
  to main/p/python-central/python-central_0.6.15.dsc
python-central_0.6.15.tar.gz
  to main/p/python-central/python-central_0.6.15.tar.gz
python-central_0.6.15_all.deb
  to main/p/python-central/python-central_0.6.15_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.
Matthias Klose <[email protected]> (supplier of updated python-central 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: SHA1

Format: 1.8
Date: Wed, 31 Mar 2010 15:52:28 +0200
Source: python-central
Binary: python-central
Architecture: source all
Version: 0.6.15
Distribution: experimental
Urgency: low
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description: 
 python-central - register and build utility for Python packages
Closes: 552595 565177 568760
Changes: 
 python-central (0.6.15) experimental; urgency=low
 .
   [ Matthias Klose ]
   * Add trigger `cleanup-pkgprepare-updates' to remove dangling symlinks
     left over from packages upgrades using the pkgprepare option in the
     preinst (built with python-central 0.6.8). Closes: #552595.
   * pycentral(1): Document byte-compile option in /etc/python/debian_config.
     Closes: #565177.
   * dh_pycentral: Remove commented section in the man page.
 .
   [ Loic Minier ]
   * dh_pycentral: when parsing debian/control, strip trailing spaces, skip
     empty lines before the first paragraphs, and only search for
     XS-Python-Version in the general paragraph (the first one, for the source
     package). Closes: #568760.
   * dh_pycentral: when parsing debian/pyversions, skip and strip newlines.
Checksums-Sha1: 
 798620695920764b901751f4a26239967706bc9b 823 python-central_0.6.15.dsc
 d956050da5918c28c495a95b937d0256914c4fc3 43225 python-central_0.6.15.tar.gz
 05a6e3bfd73fe0d8e1ced15056ef5d922bf1e143 47186 python-central_0.6.15_all.deb
Checksums-Sha256: 
 cfa70e3ab5c5d984762120cef96b93b5b89b5bdebe07f051931fd558c243bb74 823 
python-central_0.6.15.dsc
 ede8806fdfa7d9f7b2011ab8e55d17be3cb83ddbb2ea3d1cb0086d215489ddc4 43225 
python-central_0.6.15.tar.gz
 29f81daac711713f3520f23ed62b2de156cf8b16d3e7a2fb8b58be29b55620dc 47186 
python-central_0.6.15_all.deb
Files: 
 91d3fd40045b703f5f2419ef3cb204f2 823 python standard python-central_0.6.15.dsc
 31bd81020685b78c193ae7f30f568561 43225 python standard 
python-central_0.6.15.tar.gz
 8ee18dd37d2cb3b2a982198155bb9f15 47186 python standard 
python-central_0.6.15_all.deb

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

iEYEARECAAYFAkuzWoIACgkQStlRaw+TLJw6qwCfYqkSbyuyT/+JFhURynwGDazx
WBUAoLwgeeGkkgZ8o8ntRZOGdP6QoMSu
=Gmad
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to