Merge lp://staging/~rockstar/bzr-builder/fix-underunder-str-underunder into lp://staging/bzr-builder

Proposed by Paul Hummer
Status: Merged
Merged at revision: 106
Proposed branch: lp://staging/~rockstar/bzr-builder/fix-underunder-str-underunder
Merge into: lp://staging/bzr-builder
Diff against target: 37 lines (+11/-7)
1 file modified
recipe.py (+11/-7)
To merge this branch: bzr merge lp://staging/~rockstar/bzr-builder/fix-underunder-str-underunder
Reviewer Review Type Date Requested Status
James Westby Needs Fixing
Review via email: mp+35560@code.staging.launchpad.net

Description of the change

This branch takes the logic of __str__ and puts it in a method that takes a validate parameter. By doing this, it allows us a fallback plan in cases where the recipe may be invalid. For Launchpad at least, this actually means that users that may have corrupt data stored in the database can fix the problem themselves.

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Hi,

The manifest creation code uses str(), and I think it should validate.

In addition, I would like to see tests for this new code. Let me know
if you want help with that.

Thanks,

James

review: Needs Fixing
Revision history for this message
Paul Hummer (rockstar) wrote :

I could use help with the tests, sure. I'm not sure what you mean by "I think it should validate." It does parse the recipe because it passes validate=True to get_recipe_text.

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