Merge lp:~jml/launchpad/sftp-poppy-for-real into lp:launchpad

Proposed by Jonathan Lange
Status: Rejected
Rejected by: Jonathan Lange
Proposed branch: lp:~jml/launchpad/sftp-poppy-for-real
Merge into: lp:launchpad
Diff against target: 41 lines (+5/-6)
2 files modified
lib/lp/poppy/daemon.py (+2/-6)
lib/lp/poppy/tests/helpers.py (+3/-0)
To merge this branch: bzr merge lp:~jml/launchpad/sftp-poppy-for-real
Reviewer Review Type Date Requested Status
Canonical Launchpad Engineering Pending
Review via email: mp+22112@code.launchpad.net

Description of the change

Stuff I've done working on Poppy SFTP

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/poppy/daemon.py'
2--- lib/lp/poppy/daemon.py 2010-03-17 12:26:14 +0000
3+++ lib/lp/poppy/daemon.py 2010-04-15 16:23:49 +0000
4@@ -26,11 +26,6 @@
5 default='ubuntu',
6 help="Username allowed to log in.")
7
8- parser.add_option("--permissions", action="store", metavar="PERMS",
9- default='g+rwxs',
10- help="Permissions to chmod the targetfsroot with "
11- "before letting go of the directory.")
12-
13 options, args = parser.parse_args()
14
15 log = logger(options, "poppy-upload")
16@@ -43,9 +38,10 @@
17 host = "0.0.0.0"
18 ident = "lucille upload server"
19 numthreads = 4
20+ permissions = 'g+rwxs'
21
22 hooks = Hooks(root, log, allow_user=options.allow_user, cmd=options.cmd,
23- perms=options.permissions)
24+ perms=permissions)
25
26 run_server(host, int(port), ident, numthreads,
27 hooks.new_client_hook, hooks.client_done_hook,
28
29=== modified file 'lib/lp/poppy/tests/helpers.py'
30--- lib/lp/poppy/tests/helpers.py 2010-03-18 11:16:55 +0000
31+++ lib/lp/poppy/tests/helpers.py 2010-04-15 16:23:49 +0000
32@@ -36,6 +36,9 @@
33 def startPoppy(self):
34 """Start the poppy instance."""
35 script = os.path.join(config.root, "daemons/poppy-upload.py")
36+ # XXX: This is the only use of --cmd for poppy, and it's there to make
37+ # sure that the tests can tell for sure when poppy is finished.
38+ # XXX: This is also the only use of --allow-user.
39 self.process = subprocess.Popen(
40 [sys.executable, script, "--allow-user", self.user,
41 "--cmd", self.cmd, self.fsroot, self.port],