Merge lp://staging/~stevenk/launchpad/no-oops-request-daily-build into lp://staging/launchpad

Proposed by Steve Kowalik
Status: Merged
Approved by: Steve Kowalik
Approved revision: no longer in the source branch.
Merged at revision: 15813
Proposed branch: lp://staging/~stevenk/launchpad/no-oops-request-daily-build
Merge into: lp://staging/launchpad
Diff against target: 194 lines (+65/-11)
5 files modified
lib/lp/code/browser/sourcepackagerecipe.py (+10/-2)
lib/lp/code/browser/tests/test_sourcepackagerecipe.py (+18/-1)
lib/lp/code/interfaces/sourcepackagerecipe.py (+5/-1)
lib/lp/code/model/sourcepackagerecipe.py (+9/-2)
lib/lp/code/model/tests/test_sourcepackagerecipe.py (+23/-5)
To merge this branch: bzr merge lp://staging/~stevenk/launchpad/no-oops-request-daily-build
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
Review via email: mp+119654@code.staging.launchpad.net

Commit message

Skip obsolete series in ISourcePackageRecipe.performDailyBuild(), and warn users about them.

Description of the change

Currently, if you request a daily build of a recipe that contains an obsolete series (such as Maverick), you get an OOPS since the code raises a BuildNotAllowedForDistro exception, which is not caught.

I have changed ISourcePackageRecipe.performDailyBuild() to filter out distroseries which can't be built, and have added a helper method which the view calls to add a warning to the notification.

Also driveby a little cleanup.

To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :

Thank you.

review: Approve (code)

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.