Merge lp:~abentley/launchpad/permit-commands into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 11517 |
Proposed branch: | lp:~abentley/launchpad/permit-commands |
Merge into: | lp:launchpad |
Prerequisite: | lp:~abentley/launchpad/recipe-interfaces |
Diff against target: |
494 lines (+68/-102) 9 files modified
lib/lp/code/browser/sourcepackagerecipe.py (+6/-8) lib/lp/code/errors.py (+0/-9) lib/lp/code/interfaces/sourcepackagerecipe.py (+2/-2) lib/lp/code/model/sourcepackagerecipe.py (+7/-10) lib/lp/code/model/sourcepackagerecipedata.py (+10/-8) lib/lp/code/model/tests/test_sourcepackagerecipe.py (+36/-59) lib/lp/registry/model/person.py (+1/-3) lib/lp/testing/factory.py (+5/-2) utilities/sourcedeps.conf (+1/-1) |
To merge this branch: | bzr merge lp:~abentley/launchpad/permit-commands |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | Approve | ||
Review via email: mp+34476@code.launchpad.net |
Commit message
Update forbidden command handling to use bzr-builder facilities.
Description of the change
= Summary =
Update launchpad to use bzr-builder's facilities for using only safe
instructions.
== Proposed fix ==
Provide permitted_
== Pre-implementation notes ==
None
== Implementation details ==
Several things are needed for this change. Crucially, there should be a single
codepath that is used to parse recipe text, so that no one can forget to supply
permitted_
From this, it made sense to change the constructor of SourcePackageRecipe to
take unparsed recipe text as instead of a parsed "builder recipe" as an
argument.
This required changing many tests.
Additionally, the check for forbidden instructions now happens at parse time,
instead of at as a later stage.
Additionally, tests were changed to use
LaunchpadObject
tests, it was simpler to use LaunchpadObject
makeRecipe.
== Tests ==
bin/tests test_sourcepack
== Demo and Q/A ==
None
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
utilities/
lib/lp/
lib/lp/
lib/lp/
./lib/lp/
174: E202 whitespace before ')'
./lib/lp/
142: E231 missing whitespace after ','
172: E231 missing whitespace after ','
180: E231 missing whitespace after ','
./lib/lp/
243: E501 line too long (80 characters)
256: E231 missing whitespace after ','
280: E231 missing whitespace after ','
288: E231 missing whitespace after ','
295: E231 missing whitespace after ','
303: E231 missing whitespace after ','
341: E231 missing whitespace after ','
401: E231 missing whitespace after ','
243: Line exceeds 78 characters.
./lib/lp/
163: E231 missing whitespace after ','
271: E202 whitespace before ']'
381: E231 missing whitespace after ','
./lib/lp/
77: E231 missing whitespace after ','
121: E202 whitespace before ')'
121: E231 missing whitespace after ','
150: E302 expected 2 blank lines, found 1
./lib/lp/
1617: E301 expected 1 blank line, found 0
1624: E301 expected 1 blank line, found 0
Thanks for simplifying the parsed recipe stuff.