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

Bug#433469: PTS: please parse 'Homepage:' pseudo-header in the Descriptions...



On Wed, Jul 18, 2007 at 01:44:15AM +0200, Pierre Habouzit wrote:
> On Tue, Jul 17, 2007 at 11:49:32PM +0200, Christoph Berg wrote:
> > Re: Pierre Habouzit 2007-07-17 <[🔎] 20070717123702.25719.51809.reportbug@localhost>
> > >   Please parse the Homepage: pseudo-header in the control's
> > > descriptions, and display it in the packages summaries, as it's already
> > > done with XS-Vcs-Browser.
> > 
> > XS-* is a real field, just an "unofficial" one.
> > 
> > >   An example of such a package is nsd3, note that packages.d.o has it
> > > right: http://packages.debian.org/unstable/net/nsd3.
> > 
> > I think pdo just adds <a href> to whatever substring that looks like
> > an URL, cf. http://packages.debian.org/unstable/games/dds.
> > 
> > Having said that, I don't oppose this proposal, I would just prefer a
> > less ugly standard used first. (Why is there a space at the beginning
> > of that line anyway?)
> 
>   Yes, I'd would have preferred a better standard as well, thing is,
> custom is that many packages uses that:
> 
> $ grep '^  *Homepage:' /var/lib/apt/lists/mad_debian_dists_sid_main_binary-amd64_Packages | wc -l
> 4223
> 
>   That's quite a lot (and as you can see, some people use two spaces,
> some don't).
I note that some fraction of the packages with only a single space
probably intended to use 2 spaces, but for bug#339826 in the dev ref.
Actually, it still uses:
	/^ Homepage: [^ ]*$/
Which is either wrong or otherwise unclear, since the input file
(rather than an extracted long description fragment) should actually
match:
	/^  Homepage: [^ ]*$/



Reply to: