Merge lp://qastaging/~sil2100/ubuntu-system-image/server_special-case_core_archs into lp://qastaging/ubuntu-system-image/server

Proposed by Łukasz Zemczak
Status: Merged
Approved by: Łukasz Zemczak
Approved revision: 281
Merged at revision: 280
Proposed branch: lp://qastaging/~sil2100/ubuntu-system-image/server_special-case_core_archs
Merge into: lp://qastaging/ubuntu-system-image/server
Diff against target: 34 lines (+8/-2)
2 files modified
lib/systemimage/generators.py (+5/-1)
lib/systemimage/tests/test_generators.py (+3/-1)
To merge this branch: bzr merge lp://qastaging/~sil2100/ubuntu-system-image/server_special-case_core_archs
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Oliver Grawert (community) Approve
Review via email: mp+277341@code.qastaging.launchpad.net

Commit message

Change the special case architecture handling of plano to an arch of amd64.plano. Add a similar special case for the raspi2_armhf device, pulling in the armhf.raspi2 arch tarballs.

Description of the change

Change the special case architecture handling of plano to an arch of amd64.plano. Add a similar special case for the raspi2_armhf device, pulling in the armhf.raspi2 arch tarballs.

The end idea would be to simply introduce a subarch parameter to the generator that should be fairly easy to do, but as a quick fix we can hard-code it for now as we did with the rest.

To post a comment you must log in.
Revision history for this message
Oliver Grawert (ogra) wrote :

looks good (and it is rather urgent for todays stable release)

review: Approve
Revision history for this message
Oliver Grawert (ogra) wrote :

hmm, line 9 should probably read:

elif environment['device_name'] == "generic_amd64":

since you only have a list of 1 item now

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Yes, but I left it as it was before. Before Steve's plano change it was elif environment['device_name'] in ("generic_amd64",):, so I didn't feel like changing existing semantics ;)

Revision history for this message
Barry Warsaw (barry) wrote :

Any chance for a unit test?

281. By Łukasz Zemczak

Add the new archs to unit testing.

Revision history for this message
Barry Warsaw (barry) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches