Merge lp:~stevenk/launchpad/poppy-sftp-updates into lp:launchpad
Proposed by
Steve Kowalik
Status: | Merged |
---|---|
Approved by: | Steve Kowalik |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10937 |
Proposed branch: | lp:~stevenk/launchpad/poppy-sftp-updates |
Merge into: | lp:launchpad |
Diff against target: |
165 lines (+35/-13) 5 files modified
lib/lp/codehosting/sftp.py (+1/-0) lib/lp/poppy/hooks.py (+4/-2) lib/lp/poppy/tests/test_poppy.py (+10/-2) lib/lp/poppy/tests/test_twistedsftp.py (+13/-5) lib/lp/poppy/twistedsftp.py (+7/-4) |
To merge this branch: | bzr merge lp:~stevenk/launchpad/poppy-sftp-updates |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | release-critical | Approve | |
Abel Deuring (community) | code | Approve | |
Review via email: mp+26279@code.launchpad.net |
Commit message
Clean up the poppy-sftp service a little bit, exercise more code in the tests, and add a prefix which means it is far less likely to have a directory name clash with Poppy.
Description of the change
This branch just does a little clean-up of the poppy-sftp service that landed yesterday:
* Export FileIsADirectory from lp.codehosting.sftp so I can use it.
* Add a prefix argument to poppy's hooks, and use it for the SFTP server. This means it is far less likely that we will have a directory name clash with both the FTP and SFTP service running on one host.
* Note the bug number for the time.sleep XXX.
* Conform to PEP8 in the one place I missed.
To post a comment you must log in.
Hi Steve,
nice work, and thanks again for the added tests!