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/   [email protected]
Debian Developer   http://www.debian.org/         [email protected]
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7

-- 
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-python-debian-maint

Reply via email to