Merge lp://qastaging/~james-w/linaro-image-tools/metadata-from-config into lp://qastaging/linaro-image-tools/11.11

Proposed by James Westby
Status: Merged
Approved by: Michael Hudson-Doyle
Approved revision: 110
Merged at revision: 67
Proposed branch: lp://qastaging/~james-w/linaro-image-tools/metadata-from-config
Merge into: lp://qastaging/linaro-image-tools/11.11
Prerequisite: lp://qastaging/~james-w/linaro-image-tools/architectures-from-config
Diff against target: 58 lines (+37/-0)
2 files modified
hwpack/hardwarepack.py (+22/-0)
hwpack/tests/test_hardwarepack.py (+15/-0)
To merge this branch: bzr merge lp://qastaging/~james-w/linaro-image-tools/metadata-from-config
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle (community) Approve
Review via email: mp+34468@code.qastaging.launchpad.net

Description of the change

Hi,

A tiny branch to add a second constructor for Metdadata objects that
allows them to be created from their cousin, the Config object,
with a couple of other items specified.

Version doesn't go in the config, so has to be specified externally.

While architectures are in the configuration, we want to select a
single one for the particular hardware pack that is being built.

Thanks,

James

To post a comment you must log in.
109. By James Westby

Add a docstring for from_config.

110. By James Westby

Merged architectures-from-config into metadata-from-config.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

You could check that the supplied architecture is in the config. Otherwise fine.

review: Approve
Revision history for this message
James Westby (james-w) wrote :

On Fri, 03 Sep 2010 05:07:42 -0000, Michael Hudson <email address hidden> wrote:
> Review: Approve
> You could check that the supplied architecture is in the config. Otherwise fine.

I wanted to avoid that, as there may be an option in the future to force
building for a different architecture than the config specifies, so I
went with the simpler code.

Thanks,

James

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