Merge lp:~abentley/launchpad/no-write-cwd into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11172 |
Proposed branch: | lp:~abentley/launchpad/no-write-cwd |
Merge into: | lp:launchpad |
Diff against target: |
271 lines (+69/-41) 4 files modified
lib/lp/archiveuploader/dscfile.py (+32/-28) lib/lp/archiveuploader/nascentupload.py (+7/-0) lib/lp/archiveuploader/tests/test_dscfile.py (+29/-12) lib/lp/archiveuploader/uploadprocessor.py (+1/-1) |
To merge this branch: | bzr merge lp:~abentley/launchpad/no-write-cwd |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Needs Fixing | ||
Julian Edwards (community) | Approve | ||
Review via email: mp+29965@code.launchpad.net |
Commit message
Avoid writing to the to the CWD.
Description of the change
= Summary =
Avoid writing to CWD in the archive uploader.
== Proposed fix ==
Introduce a DSCFile.cleanUp method, so that we can have a temp directory that
lives between unpackAndCheckS
== Pre-implementation notes ==
Mid-implementation discussion with bigjools
== Implementation details ==
None
== Tests ==
bin/test -t nascent -t archiveuploader
== Demo and Q/A ==
Try doing a sourcepackagerecipe build on staging. It should not die like this:
http://
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
/home/abentley/
Looks good! Just a couple of small things:
1. change the indentation at line 41 of the diff as we discussed. der.tests import datadir archiveuploader s/tests/ data
2. from lp.archiveuploa
then remove the hardcoded /lib/lp/
Thanks for making the change.