On Mon, 21 Jan 2019, Steve McIntyre wrote:
> I've just been looking at the details for sbsigntool
> (https://tracker.debian.org/pkg/sbsigntool) It looks like the tracker
> code is confused by the architecture list for sbsigntool:
> 
>   Architecture: any-amd64 any-i386 arm64 armhf
> 
> and is just showing 
> 
>   arch: arm64 armhf
> 
> which is quite confusing!

Yeah, the data model includes a list of architectures by source package
and the parsing keeps only entries which are real architectures, the
architecture wildcards are just not handled.

Extract from distro_tracker/core/retrieve_data.py:

        # Convert the parsed data into corresponding model instances
        if 'architectures' in entry:
            # Map the list of architecture names to their objects
            # Discards any unknown architectures.
            entry['architectures'] = Architecture.objects.filter(
                name__in=entry['architectures'])

I think we don't have any code in the tracker to handle architecture wildcard
and try to do any mapping or expansion. Given the data model, that's we should
aim to do here. Creating all the possible wildcards would be wrong, instead we
want to process the list of architectures that the tracker knows of and see
whether it matches the wildcards listed in the source package field.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/

Reply via email to