virtual (build) packages are resolved by first match

Bug #1758895 reported by Mina Galić
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Medium
Kyle Fazzari

Bug Description

this can lead to problems when a package such as `tclsh` is provided by `tcl:386` or `tcl:amd64` and the amd64 package is already installed.

for inexplicable reasons, those two packages conflict, so rather than

 the [following line](https://github.com/snapcore/snapcraft/blob/master/snapcraft/internal/repo/_deb.py#L248)

        if apt_cache.is_virtual_package(name):
            name = apt_cache.get_providing_packages(name)[0].name

a better safer approach might be to first filter by `architecture`.

Revision history for this message
Mina Galić (minagalic) wrote :
Changed in snapcraft:
assignee: nobody → Kyle Fazzari (kyrofa)
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.