← Back to issue list

virtual (build) packages are resolved by first match

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1758895
Type
issue
State
open
Author
~minagalic
Labels
Created
2018-03-26 12:20:32.120273+00:00
Updated
2018-04-24 09:58:04.719237+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

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`.

Evaluation history

No evaluation history available.