Should a source be architecture specific?
The current implementation of
oryxcmd add_source ... and
oryxcmd add_guest assume that source is architecture-specific.
# qemux86 https://downloads.toganlabs.com/oryx/distro/0.5.0/qemux86 # raspberrypi3 http://downloads.toganlabs.com/oryx/distro/0.5.0/raspberrypi3
If we want to keep this, once we've got an index for each source (see #79) we should record the target architecture in the source index and check this when running
oryxcmd add_source ....
Alternatively, we could change the implementation so that a source contains images for multiple architectures and we pick out the appropriate image based on the current architecture when running
oryxcmd add_guest ....
# qemux86 https://downloads.toganlabs.com/oryx/distro/0.5.0 # raspberrypi3 http://downloads.toganlabs.com/oryx/distro/0.5.0
This second option will be much easier once we've got an index for each source (#79 again) and may reduce the chances of user error.