← Back to issue list

using an invalid architecture in stage-packages causes a mess

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1660903
Type
issue
State
open
Author
~elopio
Labels
Created
2017-02-01 07:29:34.330282+00:00
Updated
2017-09-22 16:23:40.541214+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

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.

Evaluation history

No evaluation history available.