using an invalid architecture in stage-packages causes a mess
Bug #1660903 reported by
Leo Arias
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
In Progress
|
Undecided
|
Cris Dywan |
Bug Description
Adding a stage package like this one:
stage-packages: ['hello:invalid']
results in the following suggestion:
You may need to add support for this architecture with 'dpkg --add-architecture invalid'.
If you actually go ahead an run that command, dpkg will not complain about the invalid architecture, which leaves you with invalid apt sources. You won't be able to run apt update, and thus you won't be able to run snapcraft.
I think we should only suggest to add the architecture if it is a valid one.
Changed in snapcraft: | |
assignee: | nobody → Christian Dywan (kalikiana) |
status: | New → Confirmed |
Changed in snapcraft: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
> If you actually go ahead an run that command, dpkg will not complain about the invalid architecture, which leaves you with invalid apt sources.
Oh gross, I didn't know that :( . We should probably check against `dpkg-architecture -L`, then.