Bug#934273: python3-debian: please support parsing Source: package (version)

Stuart Prescott stuart at debian.org
Fri Aug 9 01:38:17 BST 2019


On Friday, 9 August 2019 09:42:02 AEST David Bremner wrote:
> Source: 0xffff (0.8-1)
> 
> is a legit line in a Packages (and buildinfo) file, we should
> impliment a parser for that once, rather than letting everyone
> re-invent their own hack.

Yes, sounds very sensible.

Since that field is also an optional one, I guess Packages should also make 
sure that it always works, providing the binary package name and binary 
package version when it is omitted.

Any opinions on whether it should return the data unparsed as

	source_package (version)

or whether it should be clever enough to return a 

	namedtuple(..., ['source', 'version'])


thanks for the suggestion
Stuart

-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart at nanonanonano.net
Debian Developer   http://www.debian.org/         stuart at debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7



More information about the pkg-python-debian-maint mailing list