Bug#538376: python-debian: debian_bundle parses some multilines fields inconsistantly

2009-07-26 Thread John Wright
On Sun, Jul 26, 2009 at 03:06:58PM +0200, John Wright wrote: > I really wish it were possible to ensure the apt_pkg parser gave the > same results as the native parser, though. :( Looks like we can actually do this, with a small patch to python-apt [1] and the attached patch. [1]: http://bugs.de

Bug#538376: python-debian: debian_bundle parses some multilines fields inconsistantly

2009-07-26 Thread Stefano Zacchiroli
On Sun, Jul 26, 2009 at 03:07:18PM +0200, John Wright wrote: > I don't quite understand what you mean. Are you thinking of a method > like deb822.Deb822.iter_paragraphs_fast(...), which is basically a > wrapper around iter_paragraphs with use_apt_pkg=True and > shared_storage=True? Yes, sorry for

Bug#538376: python-debian: debian_bundle parses some multilines fields inconsistantly

2009-07-26 Thread John Wright
On Sun, Jul 26, 2009 at 12:34:47PM +0200, Stefano Zacchiroli wrote: > On Sat, Jul 25, 2009 at 07:38:57PM +0200, John Wright wrote: > > I'm actually inclined to turn off using apt_pkg by default. It's > > definitely faster, typically by a factor between 2 and 2.5, but we > > keep running into weird

Bug#538376: python-debian: debian_bundle parses some multilines fields inconsistantly

2009-07-26 Thread Stefano Zacchiroli
On Sat, Jul 25, 2009 at 07:38:57PM +0200, John Wright wrote: > I'm actually inclined to turn off using apt_pkg by default. It's > definitely faster, typically by a factor between 2 and 2.5, but we > keep running into weird corner cases with the way apt_pkg parses > things. > Clearly, using shared

Bug#538376: python-debian: debian_bundle parses some multilines fields inconsistantly

2009-07-26 Thread sean finney
hi john, On Sat, Jul 25, 2009 at 07:38:57PM +0200, John Wright wrote: > > A temporary workaround is to pass use_apt_pkg=False to the > > iter_paragraphs method. On large files, you'll probably notice a bit of > > a performance hit. I'll see what we can do to preserve this information > > with ap

Bug#538376: python-debian: debian_bundle parses some multilines fields inconsistantly

2009-07-25 Thread John Wright
On Sat, Jul 25, 2009 at 05:02:16PM +0200, John Wright wrote: > On Sat, Jul 25, 2009 at 02:05:26PM +0200, sean finney wrote: > > severity 538376 normal > > thanks > > > > okay i take back what i said about this being a regression, it seems that > > in previous versions (< 0.1.10) it was treated as

Bug#538376: python-debian: debian_bundle parses some multilines fields inconsistantly

2009-07-25 Thread sean finney
Package: python-debian Version: 0.1.14 Severity: important -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi! i discovered this one when trying to run the patch-tracker.debian.net code on an updated sid system. if a record in a Sources file has only a single checksum entry, it's returned as a si